Ubuntu 环境变量修复

发布于 2016-04-28 / Linux / 0条评论 / 1,177浏览

刚刚登上去结果一堆

-bash: groups: command not found Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not included in the PATH environment variable. ls: command not found .....

我TM都瞎了。。

echo $PATH $PATH:$M2

这不就是我昨天配置的嘛。。这难道还有错,FK

先设置临时变量,先把vim搞出来

export PATH=/usr/bin vim /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

默认怎么会有".."。。。

删掉,收工

重新登陆又和之前一样,坑爹
设置启动

vim .bashrc source /etc/environment
评论
站长统计