
Linux Commands Quiz
Authored by Saranya Muthu
Information Technology (IT)
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The man command is used to access the detailed user manual for any other command. It provides comprehensive information about the command's syntax, options, and usage examples. For instance, man ls shows everything about the ls command.
Displays the manual (documentation) for other commands.
Lists the contents of a directory (files and folders).
Changes the current working directory.
Prints the full path of the current/working directory.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The ls command lists files and directories. The -l option provides a detailed list with permissions, owner, size, and modification time. The -a option includes hidden files (those starting with a dot). Combining them as ls -al is very common.
Displays the manual (documentation) for other commands.
Lists the contents of a directory (files and folders).
Changes the current working directory.
Prints the full path of the current/working directory.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The cd command is used to navigate between directories. cd folder moves into 'folder', cd .. moves up to the parent directory, and cd or cd ~ takes you directly to your home directory from anywhere.
Changes the current working directory.
Lists the contents of a directory (files and folders).
Prints the full path of the current/working directory.
Creates new directories.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The pwd command outputs the absolute path of the directory you are currently working in. This is essential for orientation within the complex Linux filesystem hierarchy.
Changes the current working directory.
Lists the contents of a directory (files and folders).
Prints the full path of the current/working directory.
Creates new directories.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The mkdir command creates new directories. The powerful -p option allows you to create an entire path of nested directories at once, even if the parent directories don't already exist.
Creates new directories.
Removes empty directories.
Moves or renames files and directories.
Copies files and directories.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The rmdir command is used to delete empty directories. It is a safe command as it will not delete a directory that contains any files or subdirectories, preventing accidental data loss.
Creates new directories.
Removes empty directories.
Moves or renames files and directories.
Copies files and directories.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The mv command has a dual purpose. It is used to move files/directories from one location to another. It is also used to rename them, as renaming is essentially moving the file to the same location with a new name.
Moves or renames files and directories.
Creates new directories.
Removes empty directories.
Copies files and directories.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?