» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 1 » Question 8/20
8.You need to search the entire directory structure to locate a specific file. How could you do this and still be able to run other commands while the find command is still searching for you file?

find / -name filename &
find / -name filename
bg find / -name filename
&find / -name filename &

Explanation: The find command is used to locate files. / is the root directory, so searching from / will search the entire directory tree. The -name <filename> enables you to search for a file named <filename>. The ampersand character (&) is used to return control of the shell returning you to the command prompt, without have to wait for the command to execute.

Reference: http://www.oreillynet.com/linux/cmd/f/find.html

Incorrect Answers
B: With no ampersand (&) following the command, you will not be able to run other commands until the find command has completed its search.
C: The bg command is used to run a suspended job in the background if job control is enabled. However, the program or command would have to started and then suspended for this to work.
D: The ampersand (&) must follow the command, not precede it.

« Question 7 Question 9 »