linux type命令

人气:763 ℃/2023-05-31 10:53:30

linux系统type命令怎么用?让我们一起来了解下。

基本介绍: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 没有找到 

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

<上一篇下一篇>

推荐

首页/电脑版/地图
© 2024 JiaChangBa.com All Rights Reserved.