View the space occupied by folders in Aix

Source: Internet
Author: User
View the space occupied by folders in Aix
Use Du-SG to check the size of the current folder (in g );
Use Du-SG filename to check the size of all files or folders in the current folder (in g );

Du-sk And Du-Sm are measured in KB and MB respectively.

Example:

Root # ls-l
Total 8
-Rwxr-XR-x 1 root system 42 August 19, July 28 test. Sh
-RW-r -- 1 root system 0 July 28 test_date
Drwxrwxrwx 3 root system 256 July 27 webalizer-2.21-02-src

In LS-l display, bytes are displayed, for example, 42 indicates test. the actual size of SH, 256 indicates that the size of the webalizer-2.21-02-src directory is 256 bytes (note, not the size of the file in the directory)

View the result with Du-SK:
Root # Du-sk
3748.

Use Du-SK * to view the result:
root # Du-SK *
4 test. sh
0 test_date
3744 webalizer-2.21-02-src

Related Article

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.