System Administration Guide: Advanced Administration
Previous Next

Displaying Disk Space Statistics (df)

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 allows for 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. Alternately, you could transfer files to a tape by using the tar or cpio commands. Or, you could remove the files.

For a detailed description of this command, see the df(1M) man page.

How to Display Disk Space Information (df -k)

  • 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%    / 
Example 13-4 Displaying File System Information

The following example shows the output from the df -k command.

$ df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0     254966  204319   25151    90%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                  496808     376  496432     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
/dev/dsk/c0t0d0s6    3325302 3073415  218634    94%    /usr
fd                         0       0       0     0%    /dev/fd
swap                  496472      40  496432     1%    /var/run
swap                  496472      40  496432     1%    /tmp
/dev/dsk/c0t0d0s5      13702    1745   10587    15%    /opt
/dev/dsk/c0t0d0s7       9450    1045    7460    13%    /export/home

The following table describes the output of 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

Previous Next