linux - type命令

来源:趣味经验馆 2.47W

基本介绍:type命令用来显示指定命令的类型,判断给出的指令是内部指令还是外部指令。

入门测试:

显示命令所有类型:

[root@linux ~]# type ls

ls is aliased to `ls --color=auto'

[root@linux ~]# type -a ls

ls is aliased to `ls --color=auto'

ls is /usr/bin/ls

代码说明及拓展:

lias 别名 

keyword 关键字,Shell保留字 

function 函数,Shell函数 

builtin 内建命令,Shell内建命令 

file 文件,磁盘文件,外部命令 

unfound 没有找到 

linux type命令

今天的分享就是这些,希望能帮助大家。

热门标签