症状:

[root@mail22 ~]# df
-bash: df: command not found
[root@mail22 ~]# du
-bash: du: command not found
[root@mail22 ~]# ls
-bash: ls: command not found
[root@mail22 ~]# cat
-bash: cat: command not found
[root@mail22 ~]# date
-bash: date: command not found
 

解决办法:

在命令行执行 export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

 

然后就可以用了。想一直有用的话
#vi .bash_profile
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin$PATH
下次使用bash的时候就生效了。