The du command of Linux Command Encyclopedia

The Linux du (English spelling: disk usage) command is used to display the size of a directory or file.

du will display the disk space occupied by the specified directory or file.

grammar

du [-abcDhHklmsSx][-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>][--max-depth=<目录层数>][--help][--version][目录或文件]

Parameter description :

  • -a or -all Display the size of individual files in the directory.
  • -b or -bytes When displaying the directory or file size, the unit is byte.
  • -c or --total In addition to displaying the size of individual directories or files, it also displays the sum of all directories or files.
  • -D or --dereference-args Display the source file size of the specified symbolic link.
  • -h or --human-readable Use K, M, G as the unit to improve the readability of the information.
  • -H or --si is the same as the -h parameter, but K, M, and G are converted in units of 1000.
  • -k or --kilobytes in units of 1024 bytes.
  • -l or --count-links Overcount the files for hardware links.
  • -L<symlink> or --dereference<symlink> Display the source file size of the symbolic link specified in the options.
  • -m or --megabytes in units of 1MB.
  • -s or --summarize Show totals only.
  • -S or --separate-dirs When displaying the size of an individual directory, it does not include the size of its subdirectories.
  • -x or --one-file-xystem is based on the file system at the beginning of processing, and it is skipped if it encounters other different file system directories.
  • -X<file> or

Guess you like

Origin blog.csdn.net/m0_37449634/article/details/131431478
Recommended