赵荣涛's Archivers

From admin on 2014-09-23 09:43:24

Linux 查看目录大小及文件数量命令

查看当前目录大小:

[root@21andy.com]# du -sh
查看指定目录大小:

[root@21andy.com]# du -sh /www/test
查看当前目录文件总数:

[root@21andy.com]# find . -type f |wc -l
查看指定目录文件总数:

[root@21andy.com]# find /www/test -type f |wc -l
查看当前目录的目录总数:

[root@21andy.com]# find . -type d |wc -l
查看指定目录的目录总数:

[root@21andy.com]# find /www/test -type d |wc -l

查看完整版本: Linux 查看目录大小及文件数量命令

From 文雨 on 2014-09-24 12:47:09

试试ncdu

Tags: