Home » LPI » 117-201 » How could you do this and still be able to run other commands while the find command is still searching for you file?
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?
A. find / -name filename &
B. find / -name filename
C. bg find / -name filename
D. &find / -name filename &
Correct Answer: A
Explanation/Reference:
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.
Download Printable PDF. VALID exam to help you PASS.
|
|