PATH: Difference between revisions
CSV import |
No edit summary Tag: Manual revert |
| (One intermediate revision by the same user not shown) | |
(No difference)
| |
Latest revision as of 17:37, 18 March 2025
PATH is a system environment variable commonly used in operating systems such as Unix, Unix-like, and Microsoft Windows. It specifies a set of directories where executable programs are located.
Overview[edit]
In computing, PATH is an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are located. In general, each executing process or user session has its own PATH setting.
Usage[edit]
The PATH variable is used by the operating system to find the executables invoked by a command line. For example, typing "example" at the command line to run the "example" program, the operating system will try to find this program in the directories listed in the PATH variable.
Setting the PATH Variable[edit]
In Unix or Linux, the PATH variable is set using the "export" command in a login script. In Windows, the PATH variable is set in the System Environment Variables window.
PATH in Different Operating Systems[edit]
Different operating systems have different methods for setting the PATH variable. For example, in Unix-like operating systems, the directories in PATH are separated by colons (:), while in Windows, they are separated by semicolons (;).