|DU(1)||General Commands Manual||DU(1)|
du — display disk
du utility displays the file system
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.
The options are as follows:
-gflag is specified, the number displayed is the number of gigabyte (1024*1024*1024 bytes) blocks.
-hflag is specified, the numbers will be displayed in "human-readable" format. Use unit suffixes: B (Byte), K (Kilobyte), M (Megabyte), G (Gigabyte), T (Terabyte) and P (Petabyte).
dudisplays the number of blocks as returned by the stat(2) system call, i.e. 512-byte blocks. If the
-kflag is specified, the number displayed is the number of kilobyte (1024 bytes) blocks. Partial numbers of blocks are rounded up.
-mflag is specified, the number displayed is the number of megabyte (1024*1024 bytes) blocks.
du counts the storage used by symbolic
links and not the files they reference unless the
-L option is specified. If either the
-L options are
specified, storage used by any symbolic links which are followed is not
counted or displayed. The
-P options override
each other and the command's actions are determined by the last one
Files having multiple hard links are counted (and displayed) a
single time per
BLOCKSIZEis set, and the
-moptions are not specified, the block counts will be displayed in units of that size block.
du utility exits 0 on success,
and >0 if an error occurs.
du command appeared in
Version 6 AT&T UNIX.
|May 14, 2012||NetBSD-7.0.1|