Which of the following commands redirects the output of ls to standard error?
C
Which wildcards will match the following filenames? (Choose two.)
ttyS0
ttyS1
ttyS2
B,D
Which of the following files, located in a user’s home directory, contains the Bash history?
B
What is true regarding the command
ls > files
if files does not exist?
B
When redirecting the output of find to the xargs command, what option to find is useful if the
filenames contain spaces?
E
Which of the following commands displays the path to the executable file that would be executed
when the command foo is invoked?
A
What output will be displayed when the user fred executes the following command?
echo fred $USER
A
Which of the following commands displays the output of the foo command on the screen and also
writes it to a file called /tmp/foodata?
D
Which command must be entered before exiting vi to save the current file as filea.txt?
D
Given the following input stream:
txt1.txt
atxt.txt
txtB.txt
Which of the following regular expressions turns this input stream into the following output stream?
txt1.bak.txt
atxt.bak.txt
txtB.bak.txt
B