Exercises
Assess your knowledge of essential Unix command line tools in this beginner-friendly quiz. Test your understanding of common terminal commands used to navigate directories, view file contents, create folders, copy, move, rename, and delete files. Questions also cover finding text with grep, checking your current working directory with pwd, and displaying the date and time. Whether you are new to the terminal or reviewing core shell commands, this quiz is a practical way to strengthen your command line fundamentals.
Answer the questions below and check the explanation for each answer.
0/10 answered
Auto audio on: the next questions will be read aloud when you click Continue.
The ls command is used to list the contents of a directory in Unix-based systems. It shows files and subdirectories.
The cd command is used to change the current working directory to a specified directory path.
The cat command is used to display the contents of a file in the terminal or concatenate files.
The mkdir command is used to create a new directory at the specified path.
The cp command is used to copy files or directories from one location to another.
The mv command is used to move or rename files and directories in the filesystem.
The rm command is used to remove (delete) files and, with special options, directories.
The pwd command stands for 'print working directory' and displays the current directory path.
The grep command is used to search through text and files for specific patterns or strings.
The date command is used to display the current date and time in the command line interface.
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks