How to release Linux disk space

Source: Internet
Author: User
One way to release Linux disk space 1, with df check found/root directory available space is 0 [root @/] # df-h2, with du check found that each directory occupies a small amount of space, about 3G space is inexplicably lost. [Root @/] # du-m & amp; ndash; max-depth1 | so...
One way to release Linux disk space 1. use df to check whether the available space of the/root directory is 0 [root @/] # df-h 2. use du to check whether the disk space occupied by each directory is found. few spaces, about 3G space is inexplicably lost. [Root @/] # du-m-max-depth = 1 | sort-gr www.2cto.com 3. The cause is that a file has been deleted, the process is still alive, resulting in space occupation [root @/] # lsof | grep delete according to the process number listed by lsof. after killing these processes, the space will be released.
 

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.