Description of the du command

Source: Internet
Author: User

du:show Disk usage

Role: The size of the disk space occupied by the statistics directory or file.

syntax: du parameter options Parameters:
-A to display disk usage for each file, or to display the respective disk usage for each file in the directory - b Displays the directory or file size, in bytes - C In addition to the size of the directory or file, Also displays the sum of all directories and files- d Deferenc-args Displays the source file size of the specified symbolic link - h humanreadable in k,m,g, improving the readability of the information- h to K, M,gThe source file size of the symbolic link in the 1000 conversion instead of the kilobytes-K-L-Count-lines to repeat the hardware linked file - l display option -M megabytes unit- s summarize displays the current directory size - s displays the size of each directory, without subdirectories- x One-file-xystem the file system at the beginning of the processing, the other different directories skip- x exclude-from to make a directory or file

Instance:

du/home/linux: Displays a directory tree and disk usage for each subdirectory du-k/home/linux: Displays a directory in kilobytes and disk usage for subdirectories, du-m/hom           E/linux: Displays the disk usage of a directory and subdirectories in megabytes du-g/home/linux: Displays a directory in gigabytes and disk usage du-h for subdirectories. : View the size of all directories and subdirectories under the current directory du-h--max-depth=0 User: View the nth level directory, which is 0 not deep into subdirectories du-h--exculde= ' *xyz* ': Lists the size of the directory where the directory name does not include the XYZ string in the current directory du-sh User: View the size of the user directory under the current directory du-ah User: Lists the user directory and the size of all directories and files under subdirectories /c9>du-0 User: Does not list information for a directory, does not wrap the information to output the next directory directly du-s User: Displays all disk usage for only one directory tree

Description of the du command

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.