
Command Line Navigation Quiz
Authored by Corey Riley
Information Technology (IT)
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to list the contents of a directory in Linux?
`cd`
`ls`
`pwd`
`mkdir`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the `cd` command in a command line interface?
To copy files
To change directories
To delete files
To list files
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you are in the `/home/user` directory and you want to navigate to `/home/user/documents`, which command would you use?
`cd /home/user`
`cd documents`
`cd /home/user/documents`
`cd ..`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the command `pwd` display in a command line interface?
The current working directory
The list of files in a directory
The previous directory
The parent directory
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you navigate to the parent directory of your current location using the command line?
`cd /`
`cd ..`
`cd ~`
`cd -`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command would you use to create a new directory named "projects"?
`mkdir projects`
`rmdir projects`
`cd projects`
`ls projects`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you are in the `/home/user/documents` directory and want to go back to the home directory, which command would you use?
`cd /`
`cd ~`
`cd ..`
`cd /home`
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?