[Top] [Prev] [Next]

du - disk usage

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 (for example, 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 - command line interface to the Inferno system

stat, fstat, fwstat, wstat - get and put file status in Chapter 8



[Top] [Prev] [Next]

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