DU(1) COMMAND REFERENCE DU(1) NAME du - summarize disk usage SYNOPSIS du [ -a ] [ -r ] [ -s ] [ filename ... ] DESCRIPTION Du gives the number of kilobytes contained in all files and (recursively) directories within each specified filename, if filename is a directory. If a filename argument is a regular file, the size of the file will be given only if one or more options is given. The count includes the indirect blocks of the file. If filename is missing, `.' is used. Absence of an option causes an entry to be generated for each directory only. OPTIONS -a Causes an entry to be generated for each file. -r Messages will be generated when directories cannot be read, files cannot be opened, etc. -s Causes only the grand total to be given. EXAMPLES The following invocation gives the total disk usage for the directory /tmp. du -s /tmp RETURN VALUE [NO_ERRS] Command completed without error. [USAGE] Incorrect command line syntax. Execution terminated. [P_WARN] A system error occurred. Execution continues. See intro(2) for more information on system errors. [P_ERR] A system error occurred. Execution terminated. See intro(2) for more information on system errors. CAVEATS Non-directories given as arguments (not under -a option) are not listed. A file with two or more links is only counted once unless there are greater than 1024 distinctly linked files. The Printed 4/6/89 1
DU(1) COMMAND REFERENCE DU(1) 1025th linked file encountered and all subsequent linked files are counted multiply. Files with holes in them will get an incorrect block count. SEE ALSO df(1), lseek(2), and quot(8). Printed 4/6/89 2
%%index%% na:192,77; sy:269,232; de:501,689; op:1190,350; ex:1540,205; rv:1745,615; ca:2360,307;2931,162; se:3093,187; %%index%%000000000142