ITeye博客

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

yeshaoting · 2013-06-17 15:12 · linux · 操作系统 · Markdown

http://www.dedecms.com/knowledge/servers/linux-bsd/2012/0917/14463.html

 

查看当前目录大小:

[root@xker.com]# du -sh

查看指定目录大小:

[root@xker.com]# du -sh /www/xker.com

查看当前目录文件总数:

[root@xker.com]# find . -type f |wc -l

查看指定目录文件总数:

[root@xker.com]# find /www/xker.com -type f |wc -l

查看当前目录的目录总数:

[root@xker.com]# find . -type d |wc -l

查看指定目录的目录总数:

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。