关于错误修改了/etc/profile文件(环境变量错误)

由于错误修改了/etc/profile文件导致常用命令(ls、vi等)都无法使用。


解决方案:

[root@localhost ~]#  export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

[root@localhost ~]# vi /etc/profile

将profile错误的环境变量修改回来即可




猜你喜欢

转载自blog.csdn.net/hui_yong/article/details/48707413