• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

du

du

du Displays disk usage statistics.
du [-H | -L | -P] [-a | -s] [-ckrx] [<file> ...]

du displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument. If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed.
-H Follows symbolic links on the command line. Symbolic links encountered during tree traversal are not followed.
-L Follows all symbolic links.
-P Does not follow symbolic links.
-a Displays an entry for each file in the file hierarchy.
-s Displays only the grand total for the specified files.
-c Displays the grand total after all the arguments have been processed.
-k Displays the statistics in 1024-byte blocks. Default is 512-byte blocks.
-r Generates a warning message about directories that cannot be read. This is the default.
-x Does not traverse file system mount points.
du counts the storage used by symbolic links and not the files they reference unless -H or -L is specified. If either -H or -L is specified, the storage used by a symbolic link is not counted or displayed. -H, -L, and -P override each other. The option specified last is the one executed.
Files with multiple hard links are counted and displayed once per du execution.
If the environment variable BLOCKSIZE is set and the -k option is not used, the block counts are displayed according to the environment variable.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint