作业四:整理bash命令类型,验证寻找一个命令的优先级
- 类型
==> alias
==> Compound Commands
==> function
==> build_in
==> hash
==> $PATH
==> error: command not found
- 验证
hash命令
[root@python1 ~]# hash -r
[root@python1 ~]# hash
hash: 哈希表为空
[root@python1 ~]# ls
[root@python1 ~]# hash
命中 命令
1 /usr/bin/ls
[root@python1 ~]# ls
[root@python1 ~]# hash
命中 命令
2 /usr/bin/ls