In linux, how does one view disk space usage ?, Linux disk space

Source: Internet
Author: User

In linux, how does one view disk space usage ?, Linux disk space

At work, sometimes the allocated Test Machine space is not large, and the disk space is often full. The Troubleshooting process is as follows:

1. Run the df-h command to view the remaining disk space. You can see that the disk space in the/directory is full.

2. Go to the root directory. Because the commonly used directory is the usr directory recently, run the du-bs command to check the size of the commonly used usr directory. The visible/usr directory occupies 11 GB.

In fact, you can directly run the find command. See step 3.

3. Go to the usr directory and run the find command to find the large file.

Clear all the logs and compressed packages.

You can.

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.