[root@localhost ~]# vim /etc/profile
[root@localhost ~]# source /etc/profile
[root@localhost ~]# echo $HBASE_HOME
/opt/modules/hbase-2.0.0
[root@localhost ~]# vim /etc/profile
bash: vim: command not found...
[root@localhost ~]# ll
bash: ls: command not found...
Similar command is: 'lz'
[root@localhost ~]# cd /etc/
[root@localhost etc]# ll
bash: ls: command not found...
Similar command is: 'lz'
解决方案:
[root@localhost etc]# /usr/bin/vim /etc/profile
来把之前改错的地方修改回来。

本文记录了在Linux环境下遇到的命令未找到错误及其解决过程。通过使用正确的路径调用编辑器修改配置文件,最终解决了命令找不到的问题。
177

被折叠的 条评论
为什么被折叠?



