stat
显示文件或文件系统状态 -f 显示文件 所在分区的文件系统状态而非文件状态 -c 使用指定输出格式代替默认值 -t 使用简洁格式输出
~ stat /etc/hosts
File: /etc/hosts
Size: 219 Blocks: 8 IO Block: 4096 regular file
Device: 803h/2051d Inode: 2883756 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-07-16 05:46:17.578655415 +0800
Modify: 2020-02-01 16:19:48.700015649 +0800
Change: 2020-02-01 16:19:48.700015649 +0800
Birth: -
~ stat -f /etc/hosts
File: "/etc/hosts"
ID: 982d0320f8e36a97 Namelen: 255 Type: ext2/ext3
Block size: 4096 Fundamental block size: 4096
Blocks: Total: 14229792 Free: 6826896 Available: 6096618
Inodes: Total: 3637248 Free: 3105395
~ stat -c %a /etc/hosts
644