Use the df command to show the amount of free disk space on each mounted disk. The usable disk space that is reported by df reflects only 90 percent of full capacity, as the reporting statistics leave a 10 percent above the total available space. This head room normally stays empty for better performance.
The percentage of disk space actually reported by the df command is used space divided by usable space.
If the file system exceeds 90 percent capacity, you could transfer files to a disk that is not as full by using the cp command, or to a tape by using the tar or cpio commands. Or, you could remove the files.
For a detailed description of this command, see df(1M).
Use the df -k command to display disk space information in Kbytes.
$ df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 192807 40231 133296 24% / |
The following table describes the df -k command output.
Table 24–6 Output From the df -k Command
Field Name |
Description |
---|---|
kbytes |
Total size of usable space in the file system |
used |
Amount of space used |
avail |
Amount of space available for use |
capacity |
Amount of space used, as a percentage of the total capacity |
mounted on |
Mount point |
The following example shows the df -k command output.
$ df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 384120 131596 214112 39% / /dev/dsk/c0t0d0s6 1388419 1050390 282493 79% /usr /proc 0 0 0 0% /proc mnttab 0 0 0 0% /etc/mnttab fd 0 0 0 0% /dev/fd swap 467152 40 467112 1% /var/run swap 467160 48 467112 1% /tmp /dev/dsk/c0t0d0s4 1784644 1525360 205745 89% /export venus:/usr/dist 20612581 13237316 6963015 66% /usr/dist |