Test Bank Docx Working On The Command Line Chapter 2 - Answer Key + Test Bank | Linux Essentials 1e Rothwell by William Rothwell. DOCX document preview.
Linux Essentials for Cybersecurity (Rothwell/Kinsey)
Chapter 2 Working on the Command Line
1) Linux offers __________ of command-line utilities, each of which is designed to perform a specific task.
A) dozens
B) hundreds
C) thousands
D) millions
2) In Linux, every storage location, including remote drives and removable media, is accessible under the top-level directory, which is named __________.
A) root (/)
B) C:
C) home
D) bin
3) Which of the following Filesystem Hierarchy Standard (FHS) locations contains configuration files for a Linux system?
A) /lib
B) /home
C) /mnt
D) /etc
4) Which of the following provides additional information for a shell command, such as a filename or user account name, to determine which specific action to take?
A) Argument
B) Variable
C) Option
D) None of the above
5) To execute a sequence of shell commands, separate each command with a __________ and press the Enter key after the last command has been entered.
A) colon
B) semicolon
C) comma
D) period
6) Which of the following shell commands is used to move the shell’s current directory to another directory?
A) pwd
B) cd
C) ls
D) file
7) Which of the following, also known as a wildcard, refers to any character provided on the command line that represents a portion of a filename?
A) Option
B) Variable
C) File glob
D) Argument
8) Which of the following shell commands is used to display large chunks of text data, pausing after displaying the first page of information?
A) less
B) more
C) file
D) head
9) Which of the following shell commands is used to create a new directory?
A) ls
B) cd
C) pwd
D) mkdir
10) Which option for the cp shell command copies an entire directory structure?
A) -v
B) -r
C) -i
D) -n
11) Which of the following commands is used to delete a directory and all the files within the directory?
A) rm -i
B) rmdir
C) rm -r
D) rm -v
12) Which of the following shell commands is useful for updating the timestamps of critical files for inclusion in automated system backups?
A) touch
B) file
C) mv
D) cp
13) Which of the following shell commands is used to display information, such as the value of variables?
A) tail
B) set
C) unset
D) echo
14) Which of the following shell variables defines the primary prompt, often using special character sequences?
A) PS1
B) ID
C) HOME
D) PATH
15) To pass variables and their values in to other commands, convert an existing local variable to an environment variable with the __________ command.
A) crontab
B) env
C) export
D) echo
16) When a user starts a new shell after initially logging in to the system, it is referred to as a __________.
A) bash profile
B) non-login shell
C) bash login
D) login shell
17) Which of the following refers to a shell feature that allows a collection of commands to be executed by issuing a single command?
A) unalias
B) alias
C) copy
D) initialization
18) Which variable for the history command is used to set a numeric value that represents the maximum number of commands to keep in the history list?
A) HISTCONTROL
B) HISTIGNORE
C) HISTFILE
D) HISTSIZE
19) Which of the following is not true regarding regular expressions (REs)?
A) Utilities that use REs normally support basic REs by default and have some option or feature to enable extended REs.
B) There are two types of REs: basic and extended.
C) Extended REs are the “original,” and basic REs are the newer additions.
D) Although documentation may refer to basic REs as obsolete, they are still used by most modern utilities.
20) Which of the following compression commands is used to merge multiple files into a single file?
A) gzip
B) tar
C) bzip2
D) xz
Document Information
Connected Book
Answer Key + Test Bank | Linux Essentials 1e Rothwell
By William Rothwell