Chinaunix首页 | 论坛 | 博客
  • 博客访问: 421439
  • 博文数量: 125
  • 博客积分: 2838
  • 博客等级: 少校
  • 技术积分: 1410
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-05 09:45
文章分类

全部博文(125)

文章存档

2012年(13)

2011年(5)

2010年(107)

我的朋友

分类: LINUX

2010-11-02 19:45:11

  1. To list the directory sizes in kilo bytes and largest at the top
  2. du -sk * | sort +0nr
  3. du -sk * | sort -nr
  4.  
  5. To list the directory sizes in Mega bytes and largest at the top
  6. du -sm * | sort +0nr
  7. du -sm * | sort -nr
  8.  
  9. To list the directory sizes in kilo bytes and largest at the bottom.
  10. du -sk * | sort +0n
  11. du -sk * | sort -n
  12.  
  13. To list the directory sizes in Mega bytes and largest at the bottom.
  14. du -sm * | sort +0n
  15. du -sm * | sort -n
  16.  
  17. To list the directory sizes in human readable format (Mix of kilo, Mega and Giga bytes) and largest at the bottom
  18. du -s *|sort -n|cut -f 2-|while read a;do du -hs $a;done
  19.  
  20.  
  21. To list the size of hidden directories
  22.  
  23. du -sk .[a-z]* | sort +0nr
  24.  
  25. To list the size of all the files and directorires including hidden files and directories
  26. du -sk .[a-z]* * | sort +0n
阅读(1294) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~