|
|
完了,信心倍受打击。前几天我发过帖子,说是关机只能用/sbin/shutdown -h now.
有高手说是要修改环境变量:/root/.bashrc/这个文件。但是现在修改之后发现root下的bsh命令无法识别也无法执行如startx ls top free。怎么办呢?
在普通用户下还可以执行这些命令。这次发帖在linux系统下做的。
下面是在终端下执行命令的结果:
[scg@Fangzheng ~]$ su
口令:
[root@Fangzheng scg]# ls
bash: ls: command not found
[root@Fangzheng scg]# free
bash: free: command not found
[root@Fangzheng scg]# top
bash: top: command not found
[root@Fangzheng scg]# ls -a
bash: ls: command not found
[root@Fangzheng scg]# pwd
/home/scg
[root@Fangzheng scg]# cd /root
[root@Fangzheng ~]# ls
bash: ls: command not found
[root@Fangzheng ~]# vi .bashrc-bak
bash: vi: command not found
[root@Fangzheng ~]# vi .bashrc
bash: vi: command not found
[root@Fangzheng ~]#
请各位多多帮忙呀!!!谢谢。 |
|