Matrix
Klarke's C/C++ Home
posts - 61,comments - 0,trackbacks - 0
1. Count all the folder/file size:
du -h --max-depth=4

2. Some command could be used.

To list the files that is larger than 300M bytes (and do the follow up actions, like delete or compress).

     Unix>  find . -size +300M -exec /bin/ls -l {} \;

To list encounter temporary files with prefix “.ri” and you can also directly delete it with safe.

     Unix>  find . -name ".ri*" -exec /bin/ls -l {} \;          # list

     Unix>  find . -name ".ri*" -exec /bin/rm {} \;          #deletion

posted on 2011-03-01 10:07 Klarke 阅读(114) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理