[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
来把之前改错的地方修改回来。