stat命令
来源:原创 更新时间:2018-08-26 00:54:55 作者:管理员 浏览:1739
- 命令描述
- 命令语法
- 命令选项
-f:显示文件系统状态而非文件状态;
-t:以简洁方式输出信息;
--help:显示指令的帮助信息;
--version:显示指令的版本信息。
- 命令参数
- 命令实例
实例1:查看文件状态
[root@linuxbaodian files]# ll 01.txt -rw-r--r-- 1 root root 654 Aug 26 00:09 01.txt [root@linuxbaodian files]# stat 01.txt File: `01.txt' Size: 654 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 152836 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2018-08-26 00:09:16.867297588 +0800 Modify: 2018-08-26 00:09:05.250303522 +0800 Change: 2018-08-26 00:09:05.250303522 +0800
实例2:显示文件系统状态
[root@linuxbaodian files]# stat -f 01.txt File: "01.txt" ID: 5ddefab27c6a948e Namelen: 255 Type: ext2/ext3 Block size: 4096 Fundamental block size: 4096 Blocks: Total: 1787289 Free: 714416 Available: 621962 Inodes: Total: 462384 Free: 383985
实例3:以简洁方式输出信息
[root@linuxbaodian files]# stat -t 01.txt 01.txt 654 8 81a4 0 0 803 152836 1 0 0 1535213356 1535213345 1535213345 4096