Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

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

#bash#path#environment-variable#executable-search-path
A

BASHEXEC

B

BASHRC

C

PATH

Correct
D

EXECPATH

Resolution & Explanations

The PATH environment variable contains a colon-separated list of directories. When you type a command, the shell looks through these directories in order to find the executable.