.\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" %sccs.include.redist.roff% .\" .\" @(#)du.1 6.9 (Berkeley) 04/24/91 .\" .Dd .Dt DU 1 .Os BSD 4.4 .Sh NAME .Nm du .Nd display disk usage statistics .Sh SYNOPSIS .Nm du .Op Fl aksx .Op Ar pathname ... .Sh DESCRIPTION The .Nm du utility displays the file system block usage for each file argument or for each directory in the file hierarchy rooted in each directory argument. By default, the block usage of the hierarchy rooted in the current directory is displayed. .Pp The options are as follows: .Bl -tag -width Ds .It Fl a Generate an entry for each file. .It Fl k By default, .Nm du displays the number of blocks as returned by the .Xr stat 2 system call, i.e. 512-byte blocks. If the .Fl k flag is specified, the number displayed is the number of 1024-byte blocks with partial blocks rounded up. .It Fl s Generate only the grand total. .It Fl x Don't traverse any mount points. .El .Pp Files having multiple hard links are counted (and displayed) a single time per .Nm du execution. .Sh SEE ALSO .Xr df 1 , .Xr quot 8 .Sh HISTORY A .Nm command appeared in .At v6 .