当前位置: 技术问答>linux和unix
ubuntu 中的命令都不能使用了 谁能帮我看看
来源: 互联网 发布时间:2016-04-21
本文导语: 这是我的在终端截下的代码 帮我看看 我是新手 root@linux-desktop:/# whereis vi Command 'whereis' is available in '/usr/bin/whereis' The command could not be located because '/usr/bin' is not included in the PATH environment variable. bash: ...
这是我的在终端截下的代码 帮我看看 我是新手
root@linux-desktop:/# whereis vi
Command 'whereis' is available in '/usr/bin/whereis'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: whereis:找不到命令
root@linux-desktop:/# vi
Command 'vi' is available in '/usr/bin/vi'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: vi:找不到命令
root@linux-desktop:/#
root@linux-desktop:/# whereis vi
Command 'whereis' is available in '/usr/bin/whereis'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: whereis:找不到命令
root@linux-desktop:/# vi
Command 'vi' is available in '/usr/bin/vi'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: vi:找不到命令
root@linux-desktop:/#
|
用绝对路径运行 /usr/bin/whereis 可以吗?
可能是你的PATH环境变量被修改,以至于不包含 /usr/bin了
可能是你的PATH环境变量被修改,以至于不包含 /usr/bin了
|
PATH环境变量有问题?
echo $PATH 看下,显示什么?
echo $PATH 看下,显示什么?
|
which vi
|
环境变量肯定是被改掉了,如果LD_LIBRARY_PATH没有被修改的话,只能用绝对路径来操作了