Linux Essentials (010-160) — Question 62
What is the purpose of the PATH environment variable?
Answer options
- A. It allows the execution of commands without the need to know the location of the executable.
- B. It increases security by preventing commands from running in certain locations.
- C. It specifies the location of a user's home directory.
- D. It indicates the location of the default shell to be used when a user logs in.
- E. It contains the absolute path to the current directory.
Correct answer: A
Explanation
The correct answer, A, is accurate because the PATH variable enables the system to locate executables without specifying their full paths. The other options describe different aspects of system configuration but do not relate to the primary function of the PATH variable.