PATH: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 2: Line 2:
* [[Bash Built-In Variables#PATH|Bash Built-In Variables]]
* [[Bash Built-In Variables#PATH|Bash Built-In Variables]]
=Overview=
=Overview=
When given a command, the shell automatically does a hash table search for the executable on the directories listed in the <code>PATH</code> environment variable. The directories should be separated by colons in the list.
When given a command, the shell automatically does a hash table search for the executable on the directories listed in the <code>PATH</code> environment variable. The directories should be separated by colons in the list. The conventional places to set <code>PATH</code> value is in <code>[[/etc/profile#Overview|/etc/profile]]</code> and <code>[[.bashrc|~/.bashrc]]</code>. On Macs, the value of the PATH variable is built from the content of <code>/etc/paths</code> and <code>/etc/paths.d</code>. For more details see: {{Internal|Mac PATH#Overview|PATH on Mac}}
 
The conventional places to set <code>PATH</code> value is in <code>[[/etc/profile#Overview|/etc/profile]]</code> and <code>[[.bashrc|~/.bashrc]]</code>.  
 
On Macs, the value of the PATH variable is built from the content of <code>/etc/paths</code> and <code>/etc/paths.d</code>. For more details see: {{Internal|Mac PATH#Overview|PATH on Mac}}


=Organizatorium=
=Organizatorium=

Revision as of 06:29, 4 May 2022

Internal

Overview

When given a command, the shell automatically does a hash table search for the executable on the directories listed in the PATH environment variable. The directories should be separated by colons in the list. The conventional places to set PATH value is in /etc/profile and ~/.bashrc. On Macs, the value of the PATH variable is built from the content of /etc/paths and /etc/paths.d. For more details see:

PATH on Mac

Organizatorium