How to find large files under Linux

Source: Internet
Author: User
Tags disk usage

During operations, there are sometimes alarm problems with disk usage:

As long as there are several ways to handle this:

1. Find a directory with high disk utilization, du command

DU-SH/*

List the size of all directories under the root directory

And then, under the catalogue, analyze it slowly.

2. Find the file size, find command

For example:

Find files larger than 20MB on disk

Find/-size +20000k-exec ls-lh {} \;

Find files larger than 400MB on disk, delete directly, usually log files

Find/-size +400000k-exec rm-rf {} \;


--not to be continued




How to find large files under Linux

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.