網站首頁 學習教育 IT科技 金融知識 旅遊規劃 生活小知識 家鄉美食 養生小知識 健身運動 美容百科 遊戲知識 綜合知識
當前位置:趣知科普吧 > IT科技 > 

type命令|linux

欄目: IT科技 / 發佈於: / 人氣:2.44W

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

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

Tags:linux 命令 type