Update $PATH for all users?

Taylor_Armstron
Valued Contributor

Learned the hard way that "export PATH=<directory path>:$PATH" is a temporary setting, now trying to figure out how to apply it globally.

Long version: I've upgraded PHP on all of our 10.11 systems to 5.6, but now trying to update the path so that "php -v" returns the updated value. What is the best way to push this to all users, without stomping on the profiles of any users who may have already customized their settings?

2 REPLIES 2

mikeh
Contributor II

You can edit the file /etc/paths to add the directory to all user accounts.

Taylor_Armstron
Valued Contributor

Awesome, thank you! Knew I'd seen it somewhere, just blanking out on a Friday afternoon.