Name

df

Synopsis

df [options] [name]

Reports the number of free disk blocks and inodes available on all mounted filesystems or on the given name. (Unmounted filesystems are checked with -F.) name can be a device name (e.g., /dev/disk0s9), the directory name of a mount point (e.g., /Volumes/Drive2), a directory name, or a remote filesystem name (e.g., an NFS filesystem). Besides the options listed, there are additional options specific to different filesystem types or df modules.

Options

-a

Show all mount points, even if mounted with MNT_IGNORE.

-b

Print sizes in 512-byte blocks.

-g

Print sizes in gigabytes.

-H

Print sizes in human-readable form. Sizes are reported in B,K,M,G,T,P for bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes, respectively. (If you have petabytes of storage for your Macintosh, we want to hear from you.) All sizes use powers of 10, so 1M = 1,000,000 bytes.

-h

Print sizes in human-readable form. Sizes are reported in B,K,M,G,T,P for bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes, respectively. All sizes use powers of 2, so 1M = 1,048,576 bytes.

-i

Report free, used, and percent-used inodes.

-k

Print sizes in kilobytes.

-l

Show local filesystems only.

-m

Print sizes in megabytes.

-n

Print already known, potentially stale statistics about the filesystems, without requesting or calculating new statistics. This should be used only when requesting statistics would cause a large delay.

-T type1 [, type2, ... ]

Show only filesystem types ...

Get Mac OS X Tiger in a Nutshell 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.