每天一个Linux命令

每天一个Linux 命令 - stat

2017-03-05  本文已影响143人  BlackChen

stat

stat file/dir

功能 : 显示inode内容
Colors 文件的详细信息

Colors 文件的详细信息
cc@MyLinux:~$ stat Colors 
  File: 'Colors'
  Size: 12          Blocks: 8          IO Block: 4096   regular file
Device: 801h/2049d  Inode: 289123      Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/      cc)   Gid: ( 1000/      cc)
Access: 2017-03-04 21:28:57.807863187 -0800
Modify: 2017-03-04 21:28:57.807863187 -0800
Change: 2017-03-04 21:28:57.863865729 -0800
 Birth: -

Details of Linux Stat Command Output

stat -f file/dir

stat -f filename
显示关于文件系统的信息,而非文件本身

cc@MyLinux:~$ stat -f 123.txt 
  File: "123.txt"
    ID: c6f552ab700bb548 Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 4869551    Free: 3475145    Available: 3222025
Inodes: Total: 1245184    Free: 1033487

参考:
http://blog.csdn.net/clozxy/article/details/7645284

上一篇下一篇

猜你喜欢

热点阅读