One is system wide while the other is user-specific. If you want other users on your system to have some entries in their PATH, put them in the system wide configuration file. That's the difference.
The private folder is mentioned here.
Я только что узнал, что я могу изменить PATH
путем редактирования /etc/paths
или /private/etc/paths
, или помещая export PATH=$PATH:/a/path
в ~/.profile
или один из моих scrips запуска.
Есть ли разница между этими методами? Если так, один метод предпочтительнее другого?
One is system wide while the other is user-specific. If you want other users on your system to have some entries in their PATH, put them in the system wide configuration file. That's the difference.
The private folder is mentioned here.