UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: deroffChapter 2
Unix Commands
Next: Reference: diff
 

df

df [options] [name]

Report 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/dsk/0s9), the directory name of a mount point (e.g., /usr), 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

Provide information about all filesystems, even ones usually marked in /etc/mnttab to be ignored. Solaris only.

-b

Print only the number of free kilobytes.

-e

Print only the number of free files.

-F type

Report on an unmounted filesystem specified by type. Available types can be seen in the file /etc/vfstab.

-g

Print the whole statvfs structure (overriding other print options).

-i

/usr/ucb/df only. Show the number of used and available inodes in a format similar to df -k.

-k

Print allocation in kilobytes (typically used without other options). This option produces output in the format traditionally used by the BSD version of df.

-l

Report only on local filesystems.

-n

Print only the filesystem type name; with no other arguments, -n lists the types for all mounted filesystems.

-o suboptions

Supply a comma-separated list of type-specific suboptions.

-t

Report total allocated space as well as free space.

-V

Echo command line but do not execute command.


Previous: Reference: deroffUNIX in a Nutshell: System V EditionNext: Reference: diff
Reference: deroffBook IndexReference: diff

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System