O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

-d depth

Summarize usage for each directory at most depth directories down.

-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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required