linux系統(tǒng)type命令怎么用?讓我們一起來了解下。
基本介紹:type命令用來顯示指定命令的類型,判斷給出的指令是內(nèi)部指令還是外部指令。
入門測(cè)試:
顯示命令所有類型:
[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 關(guān)鍵字,Shell保留字
function 函數(shù),Shell函數(shù)
builtin 內(nèi)建命令,Shell內(nèi)建命令
file 文件,磁盤文件,外部命令
unfound 沒有找到
今天的分享就是這些,希望能幫助大家。
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com