🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Beginner

What is Environment Path?

The PATH variable that tells the shell which directories to search when looking for executable commands.

The PATH environment variable contains a colon-separated list of directories. When you type a command, the shell searches these directories in order. For example, PATH=/usr/local/bin:/usr/bin:/bin means these three directories are searched.

Adding directories to PATH (export PATH=$PATH:/new/dir) makes programs in those directories available as commands. Misconfigured PATH is a common cause of "command not found" errors.