Linux failure: df-h statistics disk space takes up too much, but du-h can't find large files

Source: Internet
Author: User

With lsof/| Grep-i Delete deleted files that are located from the root directory that are opened

If locating a file takes up a lot of space

Mainly because we delete this log file by the RM-RF *.log such a command to delete, delete the log and not restart the corresponding process, resulting in the Inode node is not released, space has been occupied.
If we use the echo "" >/logpath/201109.log command to empty the log

Related tools:

Df-h

Du-h

Du-sh

Du-h--max-depth=1

Lsof/| Grep-i Delete

Lsof Abc.txt shows the process of opening the file Abc.txt
LSOF-C ABC show ABC process now open file
LSOF-C-P 1234 lists files opened by processes with process number 1234

Find/-size +100c-print from the root disk for 100-byte files

Linux failure: df-h statistics disk space takes up too much, but du-h can't find large files

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.