Displaying available space on a file system (df command)

Use the df command to display information about total space and available space on a file system. The FileSystem parameter specifies the name of the device on which the file system resides, the directory on which the file system is mounted, or the relative path name of a file system.

If you do not specify the FileSystem parameter, the df command displays information for all currently mounted file systems. If a file or directory is specified, then the df command displays information for the file system on which it resides.

Normally, the df command uses free counts contained in the superblock. Under certain exceptional conditions, these counts might be in error. For example, if a file system is being actively modified when the df command is running, the free count might not be accurate.

Note: On some remote file systems, such as Network File Systems (NFS), the columns representing the available space on the display are left blank if the server does not provide the information.
The following are examples of how to use the df command:
  • To display information about all mounted file systems, type the following:
    df

    If your system is configured so the /, /usr, /site, and /usr/venus directories reside in separate file systems, the output from the df command is similar to the following:

    Filesystem 512-blocks  free   %used   Iused %Iused   Mounted on
    /dev/hd4    20480     13780    32%      805   13%     /
    /dev/hd2   385024     15772    95%    27715   28%     /usr
    /dev/hd9var 40960     38988     4%      115    1%     /var
    /dev/hd3    20480     18972     7%       81    1%     /tmp
    /dev/hd1     4096      3724     9%       44    4%     /home 
  • To display available space on the file system in which your current directory resides, type the following:
    df .