1.
You have a parts list, and you need to search it for all parts that contain the string V1 or the string R3. You
decide to use a grep utility to search the file. Which grep command will you use?
2.
You need to find all files in your home directory hierarchy that contain the string sample in the file name. You
want a relative path to each file so you can easily retrieve it. Choose the command that will find these files.
3.
Wally is searching for the PID of the syslog process on his system. He uses the following command:
$ pgrep syslogd
Choose the answer that describes the outcome of this command.
4.
Which grep program is used to search for literal strings and does not interrupt regular expressions?
5.
Frank is the administrator of the site where you work. You notice Frank issues the following command:
# kill -HUP `cat /usr/local/apache2/logs/httpd.pid`
Choose the answer that best describes what this command will do.
6.
Val is searching through a file using the following egrep command:
$ egrep '3+' ./customer-data
Choose the answer that best describes what the result of this search will be.
7.
Choose the command that is used to display a process and all the parent processes.
8.
Jim has moved around the file system. He wants to return to his home directory. Which command short cut will
take Jim back to his home directory?
9.
A user named Frank issues the following command:
% cal 9 1752
Choose the answer that best describes the number 9 as used in this command line.
10.
Val has invoked the following command, to gather information about the data stored in her home directory.
$ du -sk * | sort -n | tail > file2
Which answer is correct concerning this command line?