Skip to main content

Command Palette

Search for a command to run...

Day-1 Learning Linux Through McQ's

Published
•2 min read
Day-1    Learning Linux Through McQ's
R

Packaged App Development Associate @ Accenture | Infrastructure Engineering | Exploring Cloud & Security

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