centos 环境变量设置错误 -bash: ls: command not found
因为在 /etc/profile 环境变量中设置错误,到时环境无法使用
[root@kl ~]# ls -bash: ls: command not found [root@kl ~]# echo $PATH /log/qt/erlang/bin:
解决方法:
[root@kl ~]# export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin [root@kl ~]# echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
在进入/etc/profile