PATH: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Setting Configuration for All Users, Including root=
=Setting Configuration for All Users, Including root=
{{Internal|Bash_Configuration_Files#Setting_Configuration_for_all_Users.2C_Including_root|Setting Configuration for All Users, Including root}}
{{Internal|Bash_Configuration_Files#Setting_Configuration_for_all_Users.2C_Including_root|Setting Configuration for All Users, Including root}}
=Organizatorium=

Revision as of 06:31, 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

Setting Configuration for All Users, Including root

Setting Configuration for All Users, Including root