PATH

Domain: Computer Systems

🎯 Motivation

An environment variable listing directories where the OS looks for executable programs. Determines what commands work in the terminal.

πŸ“‹ Concrete Example

PATH: /usr/bin:/usr/local/bin:/home/user/.local/bin. When you type python, the OS searches these directories for python. If found, it runs. If not: β€˜command not found’.

πŸ”— Analogy

PATH is like a list of grocery stores you visit - you look for milk at Store A, then Store B, then Store C. The OS looks for programs in PATH directories, in order.