【linux】linux查看文件大小,磁盘大小,ls命令的使用

查看指定目录下 文件或目录大小超过多少的

查看 /backup/tomcat7/ 目录下 超过500M大小的文件 并展示 文件详情

find /backup/tomcat7/  -type f -size +500M  -print0 | xargs -0 du -h

 

 

 或者在该目录下,执行如下命令:

ls -lht

 

 

 

ls -lht --time-style=long-iso

ls -lht可以查看文件大小以M来显示

--time-style=long-iso 显示年月日时分

ls -l --time-style=full-iso 显示精确到毫秒

ls -l --time-style=iso   ls -l --time-style=locale  显示月日时分

ls -l --time-style '+%Y/%m/%d %H:%M:%S' 自定义显示方式

 

 

命令参考链接:https://www.cnblogs.com/iyoume2008/p/6105590.html

posted @ 2018-12-11 14:35  Angel挤一挤  阅读(2862)  评论(0编辑  收藏  举报