PATH
noun
say it: “PATH” /ˈpæθ/
A list of folders that the computer searches, in order, for a program when you type its name.
What is PATH?
PATH is the environment variable that lists the folders searched, in order, when you type a command's name; the first folder holding it wins. A program in none of them is not recognized until you give its path or add its folder. Windows separates the folders with ;, macOS and Linux with :.
$env:PATH -split ';' # one folder a line
$env:PATH += ";$HOME\tools" # this window only
In a sentence
- “The tools folder wasn't on the PATH, so typing oil gave an error.”
- “Ada added the workshop's tools folder to the end of the PATH for this window.”
Level: Apprentice · More Operating System terms at this level
Updated