共計 1199 個字符,預計需要花費 3 分鐘才能閱讀完成。
自動寫代碼機器人,免費開通
這篇文章主要為大家展示了“linux 中如何使用 type 查看命令”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓丸趣 TV 小編帶領大家一起研究并學習一下“linux 中如何使用 type 查看命令”這篇文章吧。
type 查看命令類型,例如該命令是 alias,還是內置命令,還是某個文件,還是關鍵字
哪種神仙:天上還是地上,還是水里游的
[root@tianyun ~]# type ll
ll is aliased to `ls -l –color=auto
[root@tianyun ~]# type ls
ls is aliased to `ls –color=auto
[root@tianyun ~]# type cd
cd is a shell builtin //builtin 內置命令
[root@tianyun ~]# type for
for is a shell keyword //keyword 關鍵字
[root@tianyun ~]# type useradd
useradd is /usr/sbin/useradd
[root@tianyun ~]# type -a ls //- a 列出該命令所有類型
ls is aliased to `ls –color=auto
ls is /usr/bin/ls
file 查看文件類型,例如文本文件,二進制文件,管道文件,設備文件,鏈接文件
人,神,魔,妖
[root@tianyun ~]# file /etc/hostname
/etc/hostname: ASCII text
[root@tianyun ~]# file /dev/sda
/dev/sda: block special
[root@tianyun ~]# file /dev/zero
/dev/zero: character special
stat 文件的詳細屬性,例如文件的名稱,大小,權限,atime,ctime,mtime
人身高,體重,性別,年齡,道行
[root@tianyun ~]# stat /etc/hostname
File: /etc/hostname
Size: 22 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 68703440 Links: 1
Access: (0644/-rw-r–r–) Uid: (0/ root) Gid: (0/ root)
Access: 2017-07-25 11:11:14.257652134 +0800
Modify: 2017-07-25 10:21:34.175003119 +0800
Change: 2017-07-25 10:21:34.176003171 +0800
以上是“linux 中如何使用 type 查看命令”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注丸趣 TV 行業資訊頻道!
向 AI 問一下細節
丸趣 TV 網 – 提供最優質的資源集合!