Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
du(1) OSS Shell and Utilities Reference Manual
alone.
3. To display only the total disk usage of a directory tree, enter:
du -s /u/fran
This displays only the sum total disk usage of /u/fran and the files it contains (-s).
4. To display only total disk usage used by user grp.ram of a directory tree, enter:
du -s -Wuser=grp.ram /u/fran
NOTES
If too many files are distinctly linked, du counts the excess files more than once.
When du cannot execute the stat() function on files or cannot read or execute stat() on direc-
tories, it reports an error condition and the final exit status is affected. Files with multiple links
are counted and written for only one entry.
EXIT VALUES
The du command returns the following values:
0 (zero) The command completed successfully.
>0 An error occurred.
RELATED INFORMATION
Commands: df(1), ls(1).
STANDARDS CONFORMANCE
This command conforms to the XPG4 Version 2 specification with extensions.
The following features are HP extensions to the XPG4 Version 2 specification:
• The -l and -Wuser flags are supported.
3−22 Hewlett-Packard Company 527188-004