[Top] [Prev] [Next]

du

du - disk usage

Synopsis

du [-sant] [file...]

Description

The du command outputs to standard output the total size of files specified as arguments. Output sums are rounded up to the nearest 1K unit (1024 bytes).

Directories are recursively tallied. If no filenames are provided, the command operates on the current directory.

Options
-s (default)

Output the usage information tallied for each directory.

-a

Output usage information for each file, not just the directories.

-n

Output just the filenames, no other information. Warning messages are generated for 'unsafe' filenames (i.e., names containing shell special characters or characters that might confuse certain tools). The unsafe characters are:

 " ' \Q $ # ; & | ^ < > ( ) \

-t

When used with the -n option, outputs the filename, modification time (seconds since the epoch), size (in bytes), and checksum. This option has no effect in the absence of the -n option.

Notes

Options -s, -a, and -n are mutually exclusive.

Caveat

The checksum value shown by the -t option is always 0.

See Also
sh

Description of special characters

stat

obtaining file sizes



[Top] [Prev] [Next]

infernosupport@lucent.com
Copyright © 1996,Lucent Technologies, Inc. All rights reserved.