由于错误修改了/etc/profile文件导致常用命令(ls、vi等)都无法使用。
解决方案:
[root@localhost ~]# export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
[root@localhost ~]# vi /etc/profile
将profile错误的环境变量修改回来即可
由于错误修改了/etc/profile文件导致常用命令(ls、vi等)都无法使用。
解决方案:
[root@localhost ~]# export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
[root@localhost ~]# vi /etc/profile
将profile错误的环境变量修改回来即可