Linux ll,ls,vi,.....常用命令不能使用解决办法

转载:https://blog.csdn.net/houmou/article/details/51020709

修改/etc/profile文件,配置maven环境变量时候出问题了,忘记加了 $PATH: 然后source /etc/profile 接下来就是 ll,ls,vim命令都用不了。。。害的我以为xshell我更新了呢,卸载重装了还是没用。

解决办法如下图,执行这两条命令:

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

vim /etc/profile

猜你喜欢

转载自blog.csdn.net/hqbootstrap1/article/details/84800489