I like to pipe the `du` output straight into a `sort` command. That way the biggest directories appear at the end.

cd /
sudo du -sk * |sort -n

That is for directories. If you are looking for the largest files, you can try something like this:
ls -lR |sort -nk5




On 06/13/17 04:31, Arnaud J. Hungler wrote:

Dear Jiyong,


To find which directory is using the space disk, you can go to the root directory, and use the 'du' tool as root user (or with sudo).

cd /

sudo du -hs * 2> /dev/null


Wait a bit, and every single directory will appear with his size. If you see an unexpected big size for a specific directory, cd into this one, and re-do the 'du' command until you find the guilty files.


You can as well use a graphical tool like Baobab. (I really like this one.)


Best,

Arnaud

------------------------------------------------------------------------
*From:* CCP4 bulletin board <CCP4BB@JISCMAIL.AC.UK> on behalf of 苏纪勇 <sujy...@nenu.edu.cn>
*Sent:* Tuesday, June 13, 2017 11:14 AM
*To:* CCP4BB@JISCMAIL.AC.UK
*Subject:* [ccp4bb] Clean Ubuntu system disk
Dear CCP4BB,

I installed CCP4 in Ubuntu 14.10. After I run several rounds of CCP4, I found my disk is nearly full. Only 400Mb space left. I guess I often kill the job that temporary files left in my disk. Could one BB tell me how to remove the temporary files?

Best regards,

Jiyong



------------------------------------------------------------------------
This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.


--
=======================================================================
All Things Serve the Beam
=======================================================================
                               David J. Schuller
                               modern man in a post-modern world
                               MacCHESS, Cornell University
                               schul...@cornell.edu

Reply via email to