Linux Disk Cleanup

Source: Internet
Author: User

One way to free up Linux disk space

1, with DF Check discovery/root directory free space is 0 [[email protected]/] #df-H df-i View inodedu+ file name to view the files Occupy 2, with du check found that each directory occupies little space, there is about 3g of space inexplicably lost. [[E-mail protected]/]# du-m–max-depth=1 |sort-gr www.2cto.com 3, with the Lsof check only to find that the reason is that the file was deleted, and the process is still alive, resulting in space-occupying phenomenon [[EMA Il protected]/]# lsof |grep Delete the space is freed when the process is killed according to the process number listed in the lsof. 4 It is possible that the cache in TMP is full, delete the cache file in it find/tmp-ctime +1-exec sudo rm-rf {} + Delete unused cache files more than one day

Linux Disk Cleanup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.