-bash : ls:command not found

来源:互联网 发布:服装批发软件哪个好 编辑:程序博客网 时间:2024/05/16 18:52

 我的环境是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  命令查找文件

原创粉丝点击