1.
What command will remove duplicate lines from a sorted file?
2.
Which command line option would you use to restrict the GNU find command to searching a particular number of subdirectories?
3.
To prevent a command run as root from sending both standard out (stdout) and standard error (stderr) to any terminal or other file or device, which of the following strings should be appended to the command?
4.
You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which command would you use?
5.
What does the following command do? cat '$TEST'
6.
You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?
7.
Which of the following commands would display the lines containing capital letters form the file "turkey.txt"?
8.
In Bash, inserting "1>&2" after a command redirects
9.
Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system.
10.
What umask will set the file permissions on a newly created file to -rw-r--r-- (644)?