Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getmnt(2)

fstab(5)

dumpfs(8)

icheck(8)

mkfs(8)

newfs(8)

quot(8)

df(1)

Name

df − display free and used disk space

Syntax

df [−i] [−l] [−n] [filesystem...] [file...]

Description

The df command displays the amount of disk space available on the specified file system, for example, /dev/ra0a. It also displays the amount of available disk space on the file system in which the specified file is contained, for example, $HOME. If a device is given that has no file systems mounted on it, df displays the information for the root file system. Without any arguments or options, df displays shows all mounted filesystems, including those manually mounted without use of the /etc/fstab file. The numbers are reported in kilobytes.

Unless the −n option is specified, df updates the statistics stored in memory for the file system specified, before it returns the information.

Options

−iAlso report the number of used and free inodes. 

−lReports on locally mounted disks only. 

−nDo not update the file system statistics stored in memory.  Instead, return whatever statistics are stored in memory.  This prevents df from hanging in the event that a server containing the specified file system is down.

Restrictions

You cannot use the df command to find free space on an unmounted file system using the block or character special device name. Instead, use the dumpfs command.

Examples

% df
Filesystem     Total    kbytes  kbytes   %
node           kbytes   used    free     used    Mounted on
/dev/ra1a       7429    2085    4602     31%    /tmp
/dev/ra0e      30519   14817   12651     54%    /usr/spool
/dev/ra0h     313233  122858  159052     44%    /usr/staff1

The total disk space is the total space that was created during the making of the file system.  The addition of the used space, the free space and a percentage of reserved space is the total space.  The default value for the reserved space is 10%. 

Files

/etc/fstab
List of mounted file systems

See Also

getmnt(2), fstab(5), dumpfs(8), icheck(8), mkfs(8), newfs(8), quot(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026