LPI 101-500 Practice Test - Questions Answers, Page 25
Related questions
Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?
A.
lsattr foo
B.
apropos foo
C.
locate foo
D.
whatis foo
E.
which foo
When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?
A.
-rep-space
B.
-printnul
C.
-nospace
D.
-ignore-space
E.
-print0
What is true regarding the command ls > files if files does not exist?
A.
The output of ls is printed to the terminal
B.
files is created and contains the output of ls
C.
An error message is shown and ls is not executed
D.
The command files is executed and receives the output of ls
E.
Any output of ls is discarded
Which of the following files, located in a user's home directory, contains the Bash history?
A.
.bashrc_history
B.
.bash_histfile
C.
.history
D.
.bash_history
E.
.history_bash
Which wildcards will match the following filenames? (Choose two.) ttyS0 ttyS1 ttyS2
A.
ttyS[1-5]
B.
tty?[0-5]
C.
tty*2
D.
tty[A-Z][012]
E.
tty[Ss][02]
Which of the following commands redirects the output of ls to standard error?
A.
ls >-1
B.
ls <<ERR
C.
ls >&2
D.
ls >>2
E.
ls |error
Question