找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索本站精品资源

首页 教程频道 linux命令 系统管理 查看内容

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

作者:模板之家 2020-6-9 10:54 2489人关注

type命令用来显示指定命令的类型,判断给出的指令是内部指令还是外部指令。语法格式:type 常用参数:lias别名keyword关键字,Shell保留字function函数,Shell函数builtin内建命令,Shell内建命令file

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

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

常用参数:

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

参考实例

别名命令:

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

内建命令:

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

关键字:

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

路过

雷人

握手

鲜花

鸡蛋
原作者: 模板之家 来自: www.mb5.com.cn