Which command is used to list the contents of a directory in Linux?

Command Line Navigation Quiz

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Corey Riley
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
`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`
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
A+ 2.1B Practice: Common Ports

Quiz
•
9th - 12th Grade
20 questions
Windows System Commands Quiz

Quiz
•
12th Grade
15 questions
Lesson 3: Equal Access

Quiz
•
9th - 12th Grade
20 questions
Cuestionario de Linux

Quiz
•
12th Grade
15 questions
Lesson 5: Using and Manipulating Data

Quiz
•
9th - 12th Grade
10 questions
kali 1-10

Quiz
•
9th - 12th Grade
15 questions
Linux Fundamentals

Quiz
•
12th Grade
15 questions
Mastering Express JS Concepts

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade