Environment variable

A named setting that every program started from a shell can read.

Think of it as A sticky note pinned to the shell that all its programs can see.

PATH is the best known. Programs copy the variables when they start, which is why changes show up only in terminals opened afterwards.

Related terms