Use of linuxdu command parameters

Source: Internet
Author: User
There are many methods to combine the parameters of the linuxdu command using the du command. The results of some combinations are confusing. to sum up one of the most common methods: du-shc, -s indicates the sub-directory size.-h indicates the unit of K, M, and G.-c indicates the end of total... there are many methods to combine the parameters of the linux du command using the du command. The results of some combinations are confusing. to sum up one of the most common methods: du-shc, -s indicates the sub-directory size.-h indicates the unit K, M, and G.-c indicates that the total is displayed at the end. assume that the directory structure is: test/dir1/dir1_1/file1.txt Test/dir2/dir2_1 Test/file.txt where the directory and file size are 4 KB (note that the directory itself has a size ), if the working directory is Test, the running result is 12 K dir1 8.0 K dir2 4.0 K test. py 24 K total can be seen that the size of dir1 is: dir1 The size of the big and small dir1_1's big and small sizes file1.txt; the size of dir2 is: the size of dir2 itself + the size of dir2_1. In addition, the final total is the sum of the first few items.

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.