Day-1 Learning Linux Through McQ's
Ritul Gupta
2 min read
Table of contents
- 1. What is the command to list files and directories in Linux?
- 2. How do you change the directory in the command line?
- 3. What command is used to create a new directory in Linux?
- 4. How do you copy a file in Linux?
- 5. What command is used to remove a file in Linux?
- 6. How do you check the current working directory in Linux?
- 7. What is the command to display the contents of a file in the terminal?
- 8. How do you rename a file in Linux?
- 9. What command is used to search for files and directories in Linux?
- 10. How do you change file permissions in Linux?
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.