PATH

The environment variable listing the folders the shell searches for programs.

Think of it as The list of aisles the clerk checks, in order, for the tool you named.

When you type git, the shell looks through each folder in PATH for a program with that name. An installer adds its folder to PATH, but terminals that were already open keep the old list, so open a new one after installing.

Where the picture breaks

A real clerk asks 'are you sure?' and keeps returns, but the terminal does exactly what you typed: deletions skip the Recycle Bin and there is no undo.

A shell reads a line, finds the program by name in PATH, runs it with the arguments in the current directory, and reports its exit status. It never asks for confirmation unless the program does.

See it with the rest of the analogy cast

Related terms