Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

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 les 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 les are distinctly linked, du counts the excess les more than once.
When du cannot execute the stat() function on les or cannot read or execute stat() on direc-
tories, it reports an error condition and the nal 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 specication with extensions.
The following features are HP extensions to the XPG4 Version 2 specication:
The -l and -Wuser ags are supported.
322 Hewlett-Packard Company 527188-003