Chinaunix

标题: 修改了/etc/profile 文件后,linux 什么命令也用不了了。 [打印本页]

作者: 三国赵云    时间: 2005-12-22 15:59
标题: 修改了/etc/profile 文件后,linux 什么命令也用不了了。
[root@red root]# ll
-bash: ls: command not found
[root@red root]# cd /etc/
[root@red etc]# ls
-bash: ls: command not found
[root@red etc]# vi /etc/profile
-bash: vim: command not found
[root@red etc]# shutdown -r now
-bash: shutdown: command not found
[root@red etc]#

现在什么也用不了了。提示我,用failsafe 试一下。该怎么做啊?帮忙啊。急。先谢了。
作者: hongzjx    时间: 2005-12-22 16:15
LZ把环境变量摆弄出问题了,提醒你一下,不管你有没有把握,都要在改动一个配置文件之前先做好备份,你可以用系统命令的全路径来使用命令,如:/bin/ls等
作者: kriby1981    时间: 2005-12-22 17:26
你都修改了些什么啊
作者: 三国赵云    时间: 2005-12-22 17:36
按二楼的说的修好了。谢谢啊。非常感谢。

[ 本帖最后由 三国赵云 于 2005-12-22 17:38 编辑 ]
作者: 三国赵云    时间: 2005-12-22 17:40
为了配j2sdk 改了一下profile .幸好我做了备份。否则惨了。
作者: japonensis    时间: 2005-12-22 17:46
PATH没了吧




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2