Linux stat 命令用于顯示 inode 內(nèi)容。
stat 以文字的格式來顯示 inode 的內(nèi)容。
stat [文件或目錄]
查看 testfile 文件的inode內(nèi)容內(nèi)容,可以用以下命令:
stat testfile
執(zhí)行以上命令輸出結(jié)果:
# 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: 2019-08-13 14:07:20.000000000 +0800 Modify: 2019-08-13 14:07:07.000000000 +0800 Change: 2019-08-13 14:07:07.000000000 +0800