Linux命令之stat详解

stat 显示文件/目录属性

1.格式:stat [options] files

2.常用选项

​ -L 跟随符号链接并报告链接对象

​ -f 报告文件所在文件系统,而非文件本身

​ -t 精简模式:将信息显示在同一行

3.使用

(1)stat myfile 文件信息

(2)stat -f myfile 文件系统信息

(3)stat -t myfile 仅同行显示数据信息

(4)stat -tf myfile

原文地址:https://www.cnblogs.com/bwxx/p/14917723.html