LPIC-1 Exam 101 (Linux Administrator) — Question 46
Which variable defines the directories in which a Bash shell searches for executable commands?
Answer options
- A. BASHEXEC
- B. BASHRC
- C. PATH
- D. EXECPATH
- E. PATHRC
Correct answer: C
Explanation
The correct answer is C, PATH, as it specifically contains a list of directories that the shell searches for executable files. Options A, B, D, and E do not define this search path and are not relevant to the functionality of the Bash shell in locating executable commands.