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

arrow
arrow
    全站熱搜
    創作者介紹

    quantum2nd 發表在 痞客邦 留言(0) 人氣()