The /var directory is commonly used in Linux to store log files.
A. True
B. False
Which type of filepath specifies a file location using a complete path from the root directory?
A. Absolute filepath
B. Relative filepath
C. Mount point
D. Root folder
The “..” symbol tells Linux to go up one directory level in a relative filepath.
A. True
B. False
Linux file names can contain spaces
A. True
B. False
Which command should you use to rename a file in Linux?
A. cp
B. rm
C. ln
D. mv
What parameter can you add to the rm command to remove a directory that contains files?
A. -f
B. -r
C. -a
D. -e
Which archiving utility is commonly used in Linux?
A. tar
B. gzip
C. compress
D. pkzip
Which vim editor command removes the character at the current cursor position?
A. d
B. x
C. dd
D. remove
Which vim editor command overwrites an existing file?
A. w
B. q!
C. w!
D. q
The less command displays a text file and allows you to pause the output.
A. True
B. False
The -v grep command option returns only the lines that don’t match the supplied pattern.
A. True
B. False
The -f sed command option allows you to specify a file that contains the patterns to match.
A. True
B. False
What line must be the first line in a shell script?
A. A comment line
B. A chmod command
C. The shebang command
D. A user variable