Name

du

Synopsis

du [options] [directories]

Prints disk usage (as the number of 512-byte blocks used by each named directory and its subdirectories; default is current directory).

Options

-a

Print usage for all files, not just subdirectories.

-c

In addition to normal output, print grand total of all arguments.

-H

Follow symbolic links, but only if they are command-line arguments.

-h

Human-readable output, with units spelled out: bytes, kilobytes, etc.

-I mask

Ignore entries matching mask.

-k

Print sizes in kilobytes.

-L

Follow symbolic links.

-P

Don’t follow any symbolic links.

-s

Print a total for each file specified.

-x, --one-file-system

Display usage of files in current filesystem only.

Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.