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