Linux stat命令
Linux stat命令用於顯示inode內容。
stat以文字的格式來顯示inode的內容。
語法
stat [檔或目錄]
實例
查看 testfile 檔的inode內容內容,可以用以下命令:
# stat testfile執行以上命令輸出結果:
# stat testfile #輸入命令 File: `testfile' Size: 102 Blocks: 8 IO Block: 4096 regular file Device: 807h/2055d Inode: 1265161 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2014-08-13 14:07:20.000000000 +0800 Modify: 2014-08-13 14:07:07.000000000 +0800 Change: 2014-08-13 14:07:07.000000000 +0800