原帖由 vierisusu 于 2007-4-27 19:39 发表于 9楼
#cd /root/.bash_profile
-bash: cd: /root/.bash_profile:Not a directory
#vi /root/.bash_profile
-bash: vi:command not found
#vim /root/.bash_profile
-bash: vim:command not found
-bash: su: command not found |
原帖由 vierisusu 于 2007-4-27 17:13 发表于 4楼
我刚才试了一下,还是不行,显示的是
-bash: su: command not found
是不是因为我改 /etc/profile的原因啊?我改权限了啊
chmod 755 /etc/profile
![]()
![]()
原帖由 vierisusu 于 2007-4-27 17:40 发表于 7楼
我没法恢复啊,我现在输入什么命令都是
-bash: su: command not found
输入 cd pwd 可以,其他的就不行
现在没法进入root下改啊![]()
![]()
手工把这句话加入到
/root/.bash_profile 文件里,注销后重新登录。也能对付用
localhost login:root Password: Last login:Fri Apr 27 14:29:05 on tty1 shutdown: you must be root to do that! -bash: export:'/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin':not a valid identifier -bash: id:command not found -bash: id:command not found [vierisusu@localhost `]$ su -bash: su: command not found |
原帖由 vierisusu 于 2007-4-27 14:34 发表于 1楼
在虚拟机VMware-workstation-6.0.0-44426里装RHEL5
在文本方式下 我输入 #ifconfig bash:command not found
#/sbin/ifconfig 可以
我记得以前笔记里记了一段可以在 ...
原帖由 vierisusu 于 2007-4-27 19:39 发表于 10楼
#cd /root/.bash_profile
-bash: cd: /root/.bash_profile:Not a directory
#vi /root/.bash_profile
-bash: vi:command not found
#vim /root/.bash_profile
-bash: vim:command not found
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |