PATH: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= 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. T...") |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Bash Built-In Variables#PATH|Bash Built-In Variables]] | |||
=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. | ||
Line 5: | Line 7: | ||
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}} | 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:28, 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: