ssh — guest: ~ connected

du — estimate file space usage

SYNOPSIS

du [-a] [-s] [-h | -b] [-c] [-d depth] [path ...]

DESCRIPTION

Summarizes the space used by each directory of the shell's filesystem, recursively, like the Unix du: every directory is listed after its contents, with its total size, and the path given on the command line comes last. With no path, the current directory is measured.

Sizes are apparent sizes — the files' contents encoded as UTF-8 (this filesystem has no disk blocks), summed per directory. By default they are shown in 1024-byte units rounded up, as du does; -h prints human-readable sizes and -b exact byte counts. Your own changes — files created with touch, echo … >, mkdir — are counted. Directories you may not read (e.g. /root without su) are reported and skipped.

OPTIONS

-a also list every file, not only directories -s only the total of each path given -h human-readable sizes (e.g. 1.2K, 3.4M) -b exact sizes in bytes -c add a grand total line -d <depth> list directories at most <depth> levels deep

EXAMPLES

du du -h du -sh ~ du -ah /etc du -c -d 1 / du -ah ~ | grep md

SEE ALSO

ls, tree, wc, dl, top