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

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

查看当前目录大小:

[[email protected]]# du -sh

查看指定目录大小:

[[email protected]]# du -sh /www/xker.com

查看当前目录文件总数:

[[email protected]]# find . -type f |wc -l

查看指定目录文件总数:

[[email protected]]# find /www/xker.com -type f |wc -l

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

[[email protected]]# find . -type d |wc -l

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

[[email protected]]# find /www/xker.com -type d |wc -l

猜你喜欢

转载自jarg.iteye.com/blog/1888212