How do linux/aix use commands to view the size of a directory's footprint?

Source: Internet
Author: User

The purpose of this article is to decide which directory space occupies the most files when disk space is full, so as to analyze the reasons for the lack of space

1, to Xshell or other terminal software through SSH or Telnet login to see the system host

2, through DF-HL (Linux) or Df-g (AIX) to view the overall space occupancy, the most location of the directory

3, then enter this subdirectory, the implementation of Du-ks |sort-rn |more according to space use from large to small display subdirectory space

Note:

Sometimes the lack of space may be due to a large number of files, but also may be too many files, at this time, will also cause new files can not write, at this time need to use Df-ih to view the number of files occupied.

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.