Linux Foundation Certified System Administrator (LFCS) — Question 105
Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
Answer options
- A. dirname
- B. which
- C. basename
- D. query
- E. whereis
Correct answer: E
Explanation
The 'whereis' command is specifically designed to locate the binary, source, and manual page files for a command, making it the correct choice. The other options serve different purposes: 'dirname' and 'basename' manipulate path strings, 'which' finds the location of executables, and 'query' is not a standard command for this purpose.