C is the correct answare
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
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux
standard LF line breaks and stores the result in newlist.txt?
A
CORRECT TEXT
Which program runs a command in specific intervals and refreshes the display of the programs
output? (Specify ONLY the command without any path or parameters.)
watch
The command dbmaint & was used to run dbmaint in the background. However, dbmaint is
terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint
continue to run even when the user running the program logs out?
D
C is the correct answare
Which of the following vi commands deletes two lines, the current and the following line?
C
Which of the following are valid stream redirection operators within Bash? (Choose two.)
A,E