du(1) du(1)NAME du - summarizes disk usage SYNOPSIS du [-a[l]] [-r] [-s] [files] ARGUMENTS -a Causes an entry to be generated for each file. If this option is not specified, an entry is generated for each directory only. files Specifies the files to be summarized. If this argument is not given, a dot (.) is used. -l Causes additional information for symbolic links to be displayed, indicating the full path to the file that each symbolic link references. Note that the size shown is the block size for the symbolic link itself, not that of the file that it references. -r Causes du to generate messages about directories that cannot be read, files that cannot be opened, and so on. -s Causes only the grand total (for each of the specified files ) to be given. DESCRIPTION du displays the number of blocks contained in all files (recursively) and directories within each directory and file specified by the files argument. The default system size for physical blocks is 512 bytes. The block count includes the indirect blocks of the file. The du command is normally silent about directories that cannot be read, files that cannot be opened, and so on. A file with two or more links is counted only once. EXAMPLES The following command produces a count of the number of (512-byte) blocks in each of the directories. du dir1 dir2 To see how many blocks are in each file, you must use the -a option. LIMITATIONS If you do not use the -a option, nondirectories given as arguments are not listed. January 1992 1
du(1) du(1)If there are too many distinct linked files, du will count the excess files more than once. Files with holes in them will cause an incorrect block count. FILES /bin/du Executable file SEE ALSO df(1) 2 January 1992