Day-1 Learning Linux Through McQ's

Ritul GuptaRitul Gupta
2 min read

1. What is the command to list files and directories in Linux?

a) ls

b) cd

c) pwd

d) cp

๐Ÿ’ก
ls

2. How do you change the directory in the command line?

a) cd

b) ls

c) mkdir

d) touch

๐Ÿ’ก
cd

3. What command is used to create a new directory in Linux?

a) ls

b) rm

c) mv

d) mkdir

๐Ÿ’ก
mkdir

4. How do you copy a file in Linux?

a) rm

b) mv

c) cp

d) touch

๐Ÿ’ก
cp

5. What command is used to remove a file in Linux?

a) cp

b) touch

c) mv

d) rm

๐Ÿ’ก
rm

6. How do you check the current working directory in Linux?

a) cd

b) pwd

c) ls

d) mkdir

๐Ÿ’ก
pwd

7. What is the command to display the contents of a file in the terminal?

a) ls

b) cp

c) touch

d) cat

๐Ÿ’ก
cat

8. How do you rename a file in Linux?

a) rm

b) mv

c) cp

d) mkdir

๐Ÿ’ก
mv

9. What command is used to search for files and directories in Linux?

a) find

b) cp

c) touch

d) rm

๐Ÿ’ก
find

10. How do you change file permissions in Linux?

a) chmod

b) chown

c) chdir

d) rm

๐Ÿ’ก
chmod

To read more such Linux MCQ Questions see next Part-2

Thanks For Reading

11
Subscribe to my newsletter

Read articles from Ritul Gupta directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ritul Gupta
Ritul Gupta

Im looking for an opportunity to start a career in Cloud Technologies where I can enhance my knowledge and skills. Having knowledge and hands-on on Azure Cloud, AWS & Open Source tools - Docker, Kubernetes, Jenkins, Source Version Control, CI/CD Pipelines, and Script.