1. 程式人生 > >NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

some one say change this


修改/root/.bash_profile或者/root/.profile或者/root/.bashrc.
以下是我的PATH。
[email protected]:~$ more /root/.profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
mesg n

sudo *****