The du command is one of the most commonly used commands for system operations and is designed to count file directory occupancy
-a displays all file and directory sizes, recursive display
--apparent-size shows the size of files and directories rather than disk usage.
-B,--block-size= ' size ' shows the number of blocks, and the size in quotation marks represents the block size of the system.
-B Displays the viewing object size in Byte, equivalent to--apparent-size--block-size=1
-C meter Total and total surface totals
-D calculation does not include linked files
-H Similar to--SI calculates the disk footprint of files and directories in 1000 for compute units
-H Human readable mode (K,M,G)
--SI replaces 1024 conversion units with 1000
-K similar to--block-size=1k specifies that the block size is 1k and the file directory size is computed.
-L,--count-links multiple calculations if a hard link is included
-m similar to--block-size=1m specifies that the block size is 1M and the file directory size is computed.
-L,--dereference and-D parameters are different, ignoring all linked objects (files, directories)
-p,--no-dereference default parameters, not
-0 Replace line breaks with 0 bytes
-S,--separate-dirs does not include the size of subdirectories
-S,--summarize only displays the total size of each object at the current directory level
-X,--one-file-system skips those directories on different file systems.
-x file,--exclude-from=file does not contain matching objects, where file is the user-specified object
--exclude=pattern
--max-depth= displays the depth--max-depth=0 of the directory level equivalent to--summarize
--time display the last modification time of a file or subdirectory in a directory
--time=word with keyword Word display time, contains: Atime,access,use,ctime,status
--time-style=style Adjust display time format, format contains Full-iso, Long-iso, ISO, +format (this format is from the date command)
--help Help
--version Version Information
SIZE contains KB, K, MB 1000*1000, M 1024*1024, and G, T, P, E, Z, y, etc.
Pattern is a shell expression, non-regular expression
Common parameters:
Displays all catalog files in human-readable form, which recursively displays all objects
Du-ah
Do not recursively display subordinate directories, only the current level of files and the total size of the directory
Du-sh
Displays the size in the specified units
Du-b | Du-k | Du-m
This article is from the "linuxoracle" blog, make sure to keep this source http://onlinekof2001.blog.51cto.com/3106724/1581876
The Linux command du