Linux Foundation Certified System Administrator (LFCS) — Question 100
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 PATH, as it is the environment variable that holds a list of directories for the shell to search for executable files. The other options, such as BASHEXEC, BASHRC, EXECPATH, and PATHRC, do not serve this purpose and are either related to different functionalities or do not exist as standard Bash variables.