IT科技

當前位置 /首頁/IT科技 > /列表

type命令,linux

基本介紹: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命令

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

TAG標籤:type linux 命令 #