Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ df(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

du(C)

fsck(ADM)

mnttab(F)

mount(ADM)


 df(C)                         06 January 1993                          df(C)


 Name

    df - report number of free disk blocks

 Syntax

    df [ -t ] [ -f ] [ -v -i ] [ filesystems ]

 Description

    df prints out the number of free blocks and free inodes available for
    on-line filesystems by examining the counts kept in the super-blocks;
    filesystems may be specified by device name (for example, /dev/root).  If
    the filesystems argument is unspecified, the free space on all of the
    mounted filesystems is sent to the standard output. The list of mounted
    filesystems is given in /etc/mnttab.

    Options include:

    -t  Causes total allocated block figures to be reported as well as number
        of free blocks.

    -f  Reports only an actual count of the blocks in the free list (free
        inodes are not reported). With this option, df reports on raw de-
        vices.

    -v  Reports the percent of blocks used as well as the number of blocks
        used and free.

    -i  Reports the percent of inodes used as well as the number of inodes
        used and free.  Use the -i option with the -v option to display
        counts of blocks and inodes free as well as the percentage of inodes
        and blocks used.

    The -v and -i options cannot be used with other df options.

 Files

    /dev/*
    /etc/mnttab

 See also

    du(C), fsck(ADM), mnttab(F) and mount(ADM).

 Notes

    See ``Notes'' under mount(ADM).

    This utility reports filesystem usage in 512-byte blocks.  The file-
    system, however, allocates blocks of size 1024 bytes to files.  If a file
    of size 500 bytes is created, df will report 2 blocks less free space
    (rather than 1 block), since the filesystem will allocate one 1024-byte
    block to the file.


 Authorization

    The behavior of this utility is affected by assignment of the queryspace
    authorization. Refer to the ``Using a secure system'' chapter of the
    User's Guide for more details.

 Standards conformance

    df is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


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