linux命令网

当前位置:linux命令 > linux常用命令

type命令 – 显示指定命令的类型

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

语法格式:type [参数] [命令]

常用参数:

lias别名
keyword关键字,Shell保留字
function函数,Shell函数
builtin内建命令,Shell内建命令
file文件,磁盘文件,外部命令
unfound没有找到

参考实例

别名命令:

[root@linuxmingling ~]# type ls
ls is aliased to `ls --color=auto'

内建命令:

[root@linuxmingling ~]# type cd
cd is a shell builtin

关键字:

[root@linuxmingling ~]# type if
if is a shell keyword

标签指定 类型 显示 type


相关linux命令
苏ICP备2022026517号-3  |   苏公网安备 32081202000317号
淮安先皓网络科技有限公司 © 版权所有  联系我们