LPIC-1 Exam 101 v5 (Linux Administrator) — Question 40
Which of the following tools can show the complete path of an executable file that the current shell would execute when starting a command without specifying its complete path? (Choose two.)
Answer options
- A. find
- B. pwd
- C. which
- D. locate
- E. type
Correct answer: C, D
Explanation
The correct answers are C and D. The 'which' command shows the path of the executable that would be executed, while 'locate' can find files based on their names, potentially including executables. Options A ('find') and B ('pwd') do not provide the path of executables in the context of command execution, and E ('type') can provide information about commands but does not specifically show the executable path.