🌍 All Study GuidesπŸ“Š DashboardπŸ“° BlogπŸ’‘ About
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 Linux
B
A common shell in many Linux distributions
C
An instruction that tells a computer to do somethingCorrect Answer
C
A component of the Linux architecture
Explanation:

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 Answer
B
head
C
ls
D
cat
Explanation:

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 Answer
B
Outputs a specified string of text
C
Navigates between directories
D
Displays the names of files in the current directory
Explanation:

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 Answer
B
Remove the first 5 lines of access.txt
C
Add a header to the file named access.txt
D
Return the content of access.txt one page a time
Explanation:

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 Answer
Explanation:

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 Answer
B
The default shell in most Linux distributions
C
The information that is output from the shell
D
A dollar sign ($) before the cursor
Explanation:

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 Answer
C
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?