101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 76


Which variable defines the directories in which a Bash shell searches for executable commands?

Show Answer
Correct Answer: C

The variable that defines the directories in which a Bash shell searches for executable commands is PATH. The PATH environment variable contains a colon-separated list of directories. When you type a command, Bash searches for the executable file in these directories in the order they are listed in the PATH variable. If the executable file is found in one of these directories, it can be executed without specifying the full path.

Discussion

1 comment
Sign in to comment
DuboisNicolasDuclairOption: C
Oct 21, 2023

The variable that defines the directories in which a Bash shell searches for executable commands is: C. `PATH` The `PATH` environment variable in Bash contains a colon-separated list of directories. When you type a command, Bash searches for the executable file in these directories in the order they are listed in the `PATH` variable. If the executable file is found in one of these directories, it can be executed without specifying the full path.