Linux Command du, linuxdu

Source: Internet
Author: User

Linux Command du, linuxdu

The du command is one of the common commands for system O & M. Its purpose is to count the usage of file directories.

-A: displays the size of all files and directories recursively.

-- Apparent-size: displays the file and directory sizes, rather than disk usage.

-B, -- block-size = 'SIZE' indicates the number of blocks. The SIZE in quotation marks indicates the system block size.

-B displays the object size in byte mode, which is equivalent to -- apparent-size -- block-size = 1

-C: total number of surfaces and total number of Surfaces

-D computing does not contain linked files

-H is similar to -- si calculates the disk usage of files and directories in units of 1000

-H human readable mode (K, M, G)

-- Si replaces the conversion unit of 1000 with 1024

-K is similar to -- block-size = 1 k to specify the block size as 1 k and calculate the file directory size.

-L, -- count-links multiple computation if hard link is included

-M is similar to -- block-size = 1 MB. Specify the block size as 1 MB and calculate the file directory size.

-L, -- dereference and-D parameters are different, ignoring all linked objects (files, directories)

-P, -- no-dereference default parameter, no

-0: use 0 bytes to replace line breaks

-S, -- separate-dirs does not contain the subdirectory size

-S, -- summarize only displays the total size of each object in the current directory

-X, -- one-file-system skips directories on different file systems.

-X file, -- exclude-from = FILE does not contain matched objects. The FILE here is the FILE object specified by the user.

-- Exclude = PATTERN

-- Max-depth = displays directory-Level depth -- max-depth = 0 equals to -- summarize

-- Time: displays the last modification time of the file or subdirectory in the directory.

-- Time = WORD: display time with keywords WORD, including atime, access, use, ctime, status

-- Time-style = STYLE: Adjust the display time FORMAT. The FORMAT includes full-iso, long-iso, iso, and + FORMAT (the FORMAT is from the date command)

-- Help

-- Version

 

SIZE contains kB 1000, K 1024, MB 1000*1000, M 1024*1024, and G, T, P, E, Z, Y, etc.

PATTERN is a shell expression, not a regular expression.

Common parameters:

Display All directory files in human readable form. This recursively displays all objects.

Du-ah

Displays sub-directories recursively. Only the total size of files and directories at the current level is counted.

Du-sh can also be replaced by du -- max-depth = 0-h

Display size in the specified unit

Du-B | du-k | du-m

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.