1 .\" Copyright Andries Brouwer, Ragnar Hojland Espinosa and A. Wik, 1998.
3 .\" This file may be copied under the conditions described
4 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
5 .\" that should have been distributed together with this file.
7 .TH DF 1 1998-11 "GNU fileutils 4.0"
9 df \- report filesystem disk space usage
11 .BI "df [" options "] [" file... ]
16 GNU options (shortest form):
20 .BI "[\-\-block\-size=" size ]
24 .B "[\-\-help] [\-\-version] [\-\-]"
27 reports the amount of disk space used and available on
32 reports the space used and available on all
33 currently mounted filesystems (of all types).
36 reports on the filesystem containing each argument
39 The output is in 512-byte units by default, but in
40 1024-byte units when the \-k option is given.
41 The output format is undefined, unless the \-P option is given.
44 is not a regular file, a directory or a FIFO, the result
47 The output is in 1024-byte units (when no units are
48 specified by options), unless the environment variable
50 is set, in which case POSIX is followed.
54 is a disk device file containing a mounted filesystem,
56 shows the space available on that filesystem rather
57 than on the filesystem containing the device node.
61 Use 1024-byte units instead of the default 512-byte units.
64 Output in six columns, with heading `Filesystem N-blocks
65 Used Available Capacity Mounted on' (with N=512, but N=1024
66 when the \-k option is given).
69 Terminate option list.
73 Include in the listing filesystems that have a size of 0 blocks,
74 which are omitted by default. Such filesystems are typically
75 special-purpose pseudo-filesystems, such as automounter entries.
76 Also, filesystems of type "ignore" or "auto", supported by some
77 operating systems, are only included if this option is specified.
79 .BI "\-\-block\-size=" size
80 Print sizes in blocks of
82 bytes. (New but broken in fileutils-4.0.)
84 .B "\-h, \-\-human\-readable"
85 Append a size letter such as
87 for binary megabytes (`mebibytes') to each size.
92 but use the official SI units (with powers of 1000 instead of 1024,
93 so that M stands for 1000000 instead of 1048576).
94 (New in fileutils-4.0.)
97 List inode usage information instead of block usage. An inode
98 (short for index node) contains information about a file such
99 as its owner, permissions, timestamps, and location on the disk.
101 .B "\-k, \-\-kilobytes"
102 Print sizes in 1024-byte blocks.
105 Limit the output to local filesystems only.
106 (New in fileutils-4.0.)
108 .B "\-m, \-\-megabytes"
109 Print sizes in binary megabyte (that's 1048576 bytes) blocks.
110 Note that the four options \-h, \-H, \-k, \-m are mutually exclusive
111 and only the last one is effective; for example, it is not the case
112 that giving both the \-\-si and \-m options would result in output
113 in (actual, 1000000-byte) megabytes. [The interpretation of blocksizes
114 is also influenced by the environment variable BLOCK_SIZE, but this
115 does not work in the fileutils-4.0 version.]
120 system call before getting any usage data.
123 run significantly faster, but on some systems (notably SunOS)
124 the results may be slightly out of date. This is the default.
126 .B "\-P, \-\-portability"
129 output format. This is like the default format
130 except that the information about each filesystem is always
131 printed on exactly one line; a mount device is never put on a line
132 by itself. This means that if the mount device name is more than
133 20 characters long (e.g., for some network mounts), the columns
139 system call before getting any usage data. On some systems
140 (notably SunOS), doing this yields more up to date results,
141 but in general this option makes
143 much slower, especially when there are many or very busy filesystems.
145 .BI "\-t " "fstype, " "\-\-type=" "fstype"
146 Limit the listing to filesystems of type
148 Multiple filesystem types can be specified by giving multiple
150 options. By default, nothing is omitted.
152 .B "\-T, \-\-print\-type"
153 Print each filesystem's type.
154 The types given are those reported by the system
155 (and are found in a system-dependent way, for example by reading
160 .BI "\-x " "fstype, " "\-\-exclude\-type=" "fstype"
161 Limit the listing to filesystems not of type
163 Multiple filesystem types can be eliminated by giving multiple
165 options. By default, no filesystem types are omitted.
168 Ignored; for compatibility with System V versions of
170 .SH "GNU STANDARD OPTIONS"
173 Print a usage message on standard output and exit successfully.
176 Print version information on standard output, then exit successfully.
179 Terminate option list.
181 The variable POSIXLY_CORRECT determines the choice of unit.
182 If it is not set, and the variable BLOCKSIZE has a value starting
183 with `HUMAN', then behaviour is as for the \-h option,
184 unless overridden by \-k or \-m options.
185 The variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES have the
194 as found in the fileutils-4.0 package;
195 other versions may differ slightly.