Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ df(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsck, dfsck

filesystem



DF(1,C)                     AIX Commands Reference                      DF(1,C)



-------------------------------------------------------------------------------
df



PURPOSE

Reports the number of available disk blocks.

SYNTAX


      +------+   +------------------+
df ---+- -I -+---|                 1|---|
      |- -L -|   +--- filesystem ---+
      |- -M -|     ^              |
      |- -g -|     +--------------+
      |- -i -|
      |- -p -|
      |- -s -|
      +- -v -+

-----------------
1 The default action is to provide information for each file system
  on each site in the current cluster partition for which the
  /etc/filesystems entry has the attribute free=true.


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The df command writes to standard output information about total space and
available space on the specified file systems.  All space values are given in
kilobytes.  If the filesystem argument is used, df reports on the specified
file system.  The filesystem argument can be the name of the device on which
the file system resides or the directory on which it is mounted.

Normally, the df command uses free counts maintained in the superblock.  Under
certain exceptional circumstances, these counts can be in error.  If a file
system is being actively modified when df is run, the free count can be
inaccurate.

The df command fails if the file system is unmounted but attached to a site
whose CPU type has a different byte ordering than the machine on which the
command is run.

FLAGS

-g Displays the global file system number for each file system.





Processed November 8, 1990          DF(1,C)                                   1





DF(1,C)                     AIX Commands Reference                      DF(1,C)



-i Reports the number of free and used inodes.  (If the primary site is down,
   the df -i command reports the number of used inodes is 1 since, without the
   primary site, this number is unknown.)  The -i flag is the default for the
   df command.

-I Lists file system, total kilobytes used and free, percentage used, and
   "Mounted on" columns.

-L If used without a filesystem argument, df reports on all file systems
   mounted on the site on which the command is run.

-M Displays "Mounted on" in the second column.

-p Lists the pack number with each file system.

-s Checks for count errors by forcing df to fully search the free lists of the
   local file systems to verify the counts.  The df command requires
   considerably more processing time when the -s flag is specified.  Using the
   -s flag automatically invokes the -L flag so that df reports on file systems
   for the site processing the df command.

-v Lists all fields (verbose output).

EXAMPLES

  1. To list information about all default file systems on all sites:

      df

    If the cluster contained two sites (atlas and procyon), each with a mounted
    /tmp directory in addition to the root and local, the output from the df
    command looks similar to this:

      Filesystem   Total KB   free   %used   iused   %iused   Mounted on
      /dev/hd02     25692     2812     89%   6053      61%    /
      /dev/hd03     11220     1628     85%    669      33%    /atlas
      /dev/hd04     22912     5396     76%   2335      56%    /atlas/tmp
      /dev/hd02     23600      704     97%   6053      61%    /
      /dev/hd03     10092     1192     88%    753      25%    /procyon
      /dev/hd01     11232     8346     25%    562      28%    /procyon/tmp

  2. To list information about the file system on a diskette:

      df /dev/fd0

  3. To list information about the file system normally mounted as /diskette0:

      df /diskette0

FILES





Processed November 8, 1990          DF(1,C)                                   2





DF(1,C)                     AIX Commands Reference                      DF(1,C)



/etc/filesystems  Lists the known file systems and defines their
                  characteristics.

RELATED INFORMATION

See the following commands:  "fsck, dfsck."

See the filesystem file in AIX Operating System Technical Reference.

See discussion of the df command in Managing the AIX Operating System.













































Processed November 8, 1990          DF(1,C)                                   3



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