Quiz Details
QZ-20251028-29504
Topics:
Linux Basic
Difficulty:
Level 2 - Easy
Questions:
18
Generated:
October 28, 2025 at 03:19 AM
Generated by:
Guest User
Instructions: Select an answer for each question and click "Check Answer" to see if you're correct. Then view the explanation to learn more!
1 What command is used to list files and directories in Linux?
Correct Answer:
B
Explanation: The 'ls' command is used to list directory contents in Linux.
Explanation: The 'ls' command is used to list directory contents in Linux.
2 Which command is used to change the current directory in a Linux terminal?
Correct Answer:
A
Explanation: The 'cd' command stands for 'change directory' and is used to navigate between directories.
Explanation: The 'cd' command stands for 'change directory' and is used to navigate between directories.
3 What does the 'pwd' command display?
Correct Answer:
D
Explanation: 'pwd' stands for 'print working directory' and shows the full path of the current directory.
Explanation: 'pwd' stands for 'print working directory' and shows the full path of the current directory.
4 Which command is used to create a new directory?
Correct Answer:
C
Explanation: The 'mkdir' command is used to create new directories in Linux.
Explanation: The 'mkdir' command is used to create new directories in Linux.
5 What command is used to delete a file in Linux?
Correct Answer:
D
Explanation: The 'rm' command is used to remove files in Linux.
Explanation: The 'rm' command is used to remove files in Linux.
6 Which command displays the contents of a text file?
Correct Answer:
A
Explanation: The 'cat' command is used to concatenate and display the contents of files.
Explanation: The 'cat' command is used to concatenate and display the contents of files.
7 What does the 'chmod' command do?
Correct Answer:
A
Explanation: 'chmod' is used to change the permissions of files and directories.
Explanation: 'chmod' is used to change the permissions of files and directories.
8 What is the purpose of the 'man' command?
Correct Answer:
C
Explanation: The 'man' command displays the manual pages for other commands in Linux.
Explanation: The 'man' command displays the manual pages for other commands in Linux.
9 Which command is used to copy files in Linux?
Correct Answer:
D
Explanation: The 'cp' command is used to copy files and directories in Linux.
Explanation: The 'cp' command is used to copy files and directories in Linux.
10 What command is used to view running processes?
Correct Answer:
C
Explanation: The 'top' command provides a dynamic view of running processes in real-time.
Explanation: The 'top' command provides a dynamic view of running processes in real-time.
11 Which command helps to find files and directories?
Correct Answer:
A
Explanation: The 'find' command is used to search for files and directories in a directory hierarchy.
Explanation: The 'find' command is used to search for files and directories in a directory hierarchy.
12 Which of the following commands is used to move files?
Correct Answer:
B
Explanation: The 'mv' command is used to move files and directories from one location to another.
Explanation: The 'mv' command is used to move files and directories from one location to another.
13 What does the 'echo' command do?
Correct Answer:
B
Explanation: The 'echo' command is used to display a line of text or a variable value to the terminal.
Explanation: The 'echo' command is used to display a line of text or a variable value to the terminal.
14 Which command is used to display disk usage?
Correct Answer:
C
Explanation: 'du' stands for disk usage and it estimates file space usage.
Explanation: 'du' stands for disk usage and it estimates file space usage.
15 What is the default shell in most Linux distributions?
Correct Answer:
A
Explanation: Bash (Bourne Again SHell) is the default shell in most Linux distributions.
Explanation: Bash (Bourne Again SHell) is the default shell in most Linux distributions.
16 Which command can be used to check the current user's username?
Correct Answer:
D
Explanation: The 'whoami' command returns the username of the current user.
Explanation: The 'whoami' command returns the username of the current user.
17 What does the 'sudo' command allow a user to do?
Correct Answer:
B
Explanation: 'sudo' allows a permitted user to execute a command as the superuser or another user.
Explanation: 'sudo' allows a permitted user to execute a command as the superuser or another user.
18 Which command is used to display the contents of a directory?
Correct Answer:
C
Explanation: The 'ls -l' command displays the contents of a directory in long format, showing more details.
Explanation: The 'ls -l' command displays the contents of a directory in long format, showing more details.