close
[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
echo$PATH
/opt/Sy/installer:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
全站熱搜
留言列表