我的环境是centos 6.3
突然间不知道怎么回事就会出现ls 、su 等命令符号不能使用
需要在.bash_profile 文件夹中替换原有path值为如下信息
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
涉及到文件有:
/root/.bash_profile
/home/hadoop/.bash_profile
/etc/skel/.bash_profile
以上文件可以使用
find / -name .bash_profile 命令查找文件