Linux · Flashcard

What does the bash environment variable PATH control?

  • AThe directories searched, in order, to find executable commands
  • BThe directories the dynamic linker searches for shared libraries
  • CThe current working directory used by relative file paths
  • DThe list of directories backed up by the system's cron jobs

Why this is the answer

PATH is a colon-separated list of directories the shell searches to locate a command typed without a full path. Library lookup uses LD_LIBRARY_PATH, and the working directory is tracked separately as PWD.

Official docs
Study in Gnoseed →