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 阅读(121)
评论(0) 编辑 收藏 引用