df - display free disk space
df [ -akP] [ -T type ] | [[ file ...] [ filesystem ... ]]
The df (1) utility displays statistics about the amount of
free disk space on the specified filesystem or on the file
system of which file is a part. Values are displayed in
512-byte per block block counts. If neither a file nor a file
system operand is specified, df (1) displays statistics for
drives C through Z. (The df (1) utility reports on drives /A and /B if they
are specified as operands, however.)
-a
Report statistics on all drives, /A through
/Z .
-k
Blocks are in counts of 1024 bytes (one kilobyte) instead of
512 bytes.
-P
Prevent the display of the Type column in the output. This is
the portable output format specified in the POSIX.2 standard.
-T type
Print only statistics for file systems of the specified
type . The recognized type s are:
all
All file system types.
cdfs
CD-ROM file system.
fat
File Allocation Table file system (such as on MS-DOS
partitions).
hpfs
File system used by OS/2.
NFS
Network File System. A remote file system developed by SUN
Microsystems for UNIX.
ntfs
File system used by Windows NT, Windows 2000, and
Windows XP.
ofs
Object File System.
samba
Networked SAMBA file system.
This option is ignored if either file or filesystem
is specified.
Typical output is:
$ df
Filesystem 512-blocks Used Available Capacity Type Mounted on
/Harddisk0/Partition1 3169088 1691069 1478019 53% ntfs /C
/CdRom0 1085320 1085320 0 100% cdfs /D
/MORGAN/c_drive 2491713 2308884 182829 93% ntfs /M
/MORGAN/nt_src 792272 748651 43621 94% ntfs /N
/MORGAN/products 979760 526281 453479 54% ntfs /P
/MORGAN/VSC_suites 2491713 2308884 182829 93% ntfs /W
$ df -kP /D
Filesystem 1024-blocks Used Available Capacity Mounted on
/CdRom0 542660 542660 0 100% /D
The columns are:
Filesystem
The path name of the file system.
512-blocks
Number of blocks in the file system. With the -k option,
these blocks are 1024-bytes, not 512.
Used
Number of blocks currently in use.
Available
Number of blocks available.
Capacity
Current usage expressed as a percentage.
Type
The type of the file system. This can be any of the values
acceptable as arguments to the -T option, or ??? if
the file system type is unknown.
Mounted on
The file system's mount point.
The df (1) utility exits with status 0 on success, >0
otherwise.
SEE ALSO
du (1)
find (1)