目录
- 1. 问题所示
- 2. 原理分析
-
- 2.1 方法一
- 2.2 方法二
1. 问题所示
本身vim是系统内置的命令,连vim都出现问题
出现如下问题:
root@gaokaoli:/usr# vim ~/.bashrc
Command 'vim' is available in the following places
* /bin/vim
* /usr/bin/vim
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
vim: command not found
截图如下:
2. 原理分析
内置命令无法识别,说明系统变量有误,导致无法识别,既然系统变量有误,将其注释或者更改为正确的即可,但是现在打不开,又怎么注释掉
2.1 方法一
通过上面的错误提示,使用/bin/vim
或者 /usr/bin/vim<
更多推荐
出现Command ‘vim‘ is available in the following places,vim: command not found等解决方法
发布评论