man Pages(1M): System Administration Commands
この本のみを検索
PDF 文書ファイルをダウンロードする

NAME

df - report number of free disk blocks and files

SYNOPSIS

df [ -F FSType ] [ -abegklntV ] [ -o FSType-specific_options ]
[ directory | block_device | resource . . . ]

AVAILABILITY

SUNWcsu

DESCRIPTION

df displays the amount of disk space occupied by mounted or unmounted file systems, directories, or mounted resources, the amount of used and available space, and how much of the file system's total capacity has been used. directory represents a valid directory name. If directory is specified, df reports on the file system that contains directory. block_device represents a block special device (for example, /dev/dsk/c1d0s7); if block_device is specified, the corresponding file system need not be mounted. resource is an NFS resource name. Used without arguments or options, df reports on all mounted file systems.

OPTIONS

-F
Specify the FSType on which to operate. This is only needed if the file system is unmounted. The FSType should be specified here or be determinable from /etc/vfstab by matching the directory, block_device, or resource with an entry in the table, or by consulting /etc/default/fs.
-a
Report on all filesystems including ones whose entries in /etc/mnttab have the ignore option set.
-b
Print the total number of kilobytes free.
-e
Print only the number of files free.
-g
Print the entire statvfs structure. This option is used only for mounted file systems. It cannot be used with the -o option. This option will override the -b, -e ,-k, -n, and -t options.
-k
Print the allocation in kilobytes using an alternate format. The available space indicated is the amount the non-superuser has. This option will override the -b, -e ,-n, and -t options.
-l
Report on local file systems only. This option is used only for mounted file systems. It cannot be used with the -o option.
-n
Print only the FSType name. Invoked with no arguments, this option prints a list of mounted file system types. This option is used only for mounted file systems. It cannot be used with the -o option.
-t
Print full listings with totals. This option will override the -b, -e ,and -n options.
-V
Echo the complete set of file system specific command lines, but do not execute them. The command line is generated by using the options and arguments provided by the user and adding to them information derived from /etc/mnttab, /etc/vfstab, or /etc/default/fs. This option may be used to verify and validate the command line.
-o
Specify FSType-specific options. These options are comma-separated, with no intervening spaces. See the manual page for the FSType-specific command for details.

FILES

/dev/dsk/*
disk devices
/etc/default/fs
default local file system type. Default values can be set for the following flags in /etc/default/fs. For example: LOCAL=ufs
LOCAL:
The default partition for a command if no FSType is specified.
/etc/mnttab
mount table
/etc/vfstab
list of default parameters for each file system

SEE ALSO

mount (1M),statvfs(2), mnttab(4), vfstab(4)
Manual pages for the FSType-specific modules of df .

NOTES

The -F option is intended for use with unmounted file systems.
This command may not be supported for all FSTypes.