[Q]How to set PATH for all user?
[A] Add a file (ex: test.sh) with the PATH what you what
re-login by any user.
ex:
cd /etc/profile.d/
vi test.sh
PATH=/opt/Sy/installer:PATH
echoPATH
/opt/Sy/installer:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
文章標籤
全站熱搜
