--------------Linux command du

Source: Internet
Author: User
Tags disk usage

===========shuxiangguo============

Learning from http://roclinux.cn/?p=49

Du:disk Usage HDD Usage

1, Du-h.

“.” Represents the current directory. can also be replaced by a clear path

-H means to use K, M, G to facilitate people to read the form of display

2, du-d 1.

-D represents the iteration depth, and the current directory depth is 0 1 for the deepest iteration to the next depth of the current directory, and the equivalent command is du--max-depth 1. You can view more detailed information through man du.

3. Du-ah ABC

Lists the size of all directories and files under the ABC directory and its subdirectories:

-a means including directories and files

4. DU-0H ABC

More information about the ABC directory and the size of subdirectories is listed under one screen

0 (bar 0) indicates the information for each directory listed, not wrapping, but outputting the information of the next directory directly.

--------------Linux command du

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.