Linux Foundation Certified System Administrator (LFCS) — Question 103
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
Answer options
- A. apropos
- B. which
- C. find
- D. query
- E. whereis
Correct answer: C
Explanation
The correct answer is C (find) because it allows you to search through directories for files matching specific criteria. The other options, like which and whereis, are used to locate executables in standard directories listed in $PATH, and apropos provides descriptions of commands, while query is not a standard command for this purpose.