QuiztudyPREMIUM
Google Cybersecurity Professional Certificate • STUDY MODE
NAVIGATE THE LINUX FILE SYSTEM IN BASH
QUESTION 1 OF 7
What is a command?
A
The highest-level directory in LinuxB
A common shell in many Linux distributionsC
An instruction that tells a computer to do somethingCorrect AnswerC
A component of the Linux architectureExplanation:
A command is an instruction that tells a computer to do something.
QUESTION 2 OF 7
Which of the following commands prints the working directory to the screen?
A
pwdCorrect AnswerB
headC
lsD
catExplanation:
The pwd command prints the working directory to the screen.
QUESTION 3 OF 7
What does the cd command do?
A
Prints the working directory to the screenCorrect AnswerB
Outputs a specified string of textC
Navigates between directoriesD
Displays the names of files in the current directoryExplanation:
The cd command navigates between directories.
QUESTION 4 OF 7
A security professional enters head access.txt into a shell. What are they telling the operating system to do?
A
Display the first 10 lines of access.txtCorrect AnswerB
Remove the first 5 lines of access.txtC
Add a header to the file named access.txtD
Return the content of access.txt one page a timeExplanation:
They are telling the operating system to display the first 10 lines of access.txt. The head command displays just the beginning of a file, by default 10 lines.
QUESTION 5 OF 7
What is the difference between an absolute file path and a relative file path?
A
An absolute file path starts from the current directory, and a relative file path starts from the root.B
An absolute file path ends with a forward slash (/), and a relative file path ends with a backslash (\).C
An absolute file path ends with a backslash (\), and a relative file path ends with a forward slash (/).D
An absolute file path starts from the root, and a relative file path starts from the current directory.Correct AnswerExplanation:
An absolute file path is the full file path that starts from the root, and a relative file path is a shorter file path that starts from the current directory.
QUESTION 6 OF 7
What is a Linux command?
A
An instruction telling the computer to do somethingCorrect AnswerB
The default shell in most Linux distributionsC
The information that is output from the shellD
A dollar sign ($) before the cursorExplanation:
A Linux command is an instruction telling the computer to do something.
QUESTION 7 OF 7
What does the ls command do?
A
It displays just the beginning of a file, by default 10 lines.B
It displays the names of files and directories in the current working directory.Correct AnswerC
It prints the working directory to the screen.D
It displays the content of a file.Explanation:
The ls command displays the names of files and directories in the current working directory.
Ready to test your recall?
What is a command?
A
The highest-level directory in Linux
B
A common shell in many Linux distributions
C
An instruction that tells a computer to do something
C
A component of the Linux architecture
How confident are you in this answer?