|DU(1)||General Commands Manual||DU(1)|
duutility displays the file system block usage for each file argument and for each directory in the file hierarchy rooted in each directory argument. Note that the system block usage is usually greater than the actual size of the file. If no file is specified, the block usage of the hierarchy rooted in the current directory is displayed. The options are as follows:
0has the same effect as
-s. Overrides earlier
-koption causes the numbers to be reported in kilobyte counts.
-k. Where more than one of these options is specified, the last option given overrides the others.
ducounts the storage used by symbolic links and not the files they reference unless the
-Loption is specified. If either the
-Loptions are specified, storage used by any symbolic links which are followed is not counted or displayed. The
-Poptions override each other and the command's actions are determined by the last one specified. Files having multiple hard links are counted (and displayed) a single time per
-hoption is specified.
duutility exits 0 on success, and >0 if an error occurs. df(1), fts(3), symlink(7), quot(8)
duutility is compliant with the IEEE Std 1003.1-2008 (“POSIX.1”) specification. The flags [
BLOCKSIZEenvironment variable, are extensions to that specification. The flag [
duutility and its
-soptions first appeared in Version 1 AT&T UNIX. The
-roption first appeared in AT&T System III UNIX and is available since OpenBSD 2.3. The
-xoptions first appeared in 4.3BSD-Reno and
-Hin 4.4BSD. The
-Loptions first appeared in the GNU fileutils;
-Pare available since 4.4BSD-Lite1,
-csince OpenBSD 2.1. The
-doption first appeared in FreeBSD 2.2 and is available since OpenBSD 5.7,
-hfirst appeared in FreeBSD 4.0 and is available since OpenBSD 2.9.
duwas written by Chris Newcomb for 4.3BSD-Reno in 1989 and incorporates later contributions from Elan Amir, Keith Bostic, Luke Mewburn, Matt Bing, and Can Erkin Acar <firstname.lastname@example.org>.
|October 19, 2014||OpenBSD-current|