Linux之整理bash命令类型

作业四:整理bash命令类型,验证寻找一个命令的优先级

  1. 类型

==> alias

  ==> Compound Commands

    ==> function

      ==> build_in

        ==> hash

          ==> $PATH

            ==> error: command not found

  1. 验证

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

 

posted @ 2017-03-21 19:21  qianxiamo  阅读(133)  评论(0编辑  收藏  举报