1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
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 "18 June 2002" "GNU fileutils 4.1"
9 df \- report filesystem disk space usage
11 .BI "df [" options "] [" file... ]
16 GNU options (shortest form):
20 .B [\-\-block\-size=\fISIZE\fB]
23 .B "[\-\-help] [\-\-version] [\-\-]"
26 reports the amount of disk space used and available on
31 reports the space used and available on all
32 currently mounted filesystems (of all types).
35 reports on the filesystem containing each argument
38 The output is in 512-byte units by default, but in
39 1024-byte units when the \-k option is given.
40 The output format is undefined, unless the \-P option is given.
43 is not a regular file, a directory or a FIFO, the result
48 is a disk device file containing a mounted filesystem,
50 shows the space available on that filesystem rather
51 than on the filesystem containing the device node.
55 Use 1024-byte units instead of the default 512-byte units.
58 Output in six columns, with heading `Filesystem N-blocks
59 Used Available Capacity Mounted on' (with N=512, but N=1024
60 when the \-k option is given).
64 Include in the listing filesystems that have a size of 0 blocks, or of type
65 `ignore' or `auto' which are omitted by default.
67 .B "\-h, \-\-human-readable"
68 Append a size letter such as \fBM\fR for megabytes to each size.
69 Powers of 2 are used, not 10; \fBM\fR stands for 1,048,576 bytes.
72 List inode usage information instead of block usage.
74 .B "\-k, \-\-kilobytes"
75 Print sizes in 1024-byte blocks, overriding the default block size.
78 List only local filesystems.
80 .B "\-m, \-\-megabytes"
81 Print sizes in megabyte (1,048,576 bytes) blocks.
83 .BI "\-t " "fstype, " "\-\-type=" "fstype"
84 List only filesystems of type
86 Multiple types can be specified by giving multiple
88 options. See \fB\-\-all\fR for ommited defaults.
91 Ignored; for compatibility with System V versions of
94 .BI "\-x " "fstype, " "\-\-exclude\-type=" "fstype"
95 Exclude filesystems of type
97 Multiple filesystem types can be eliminated by giving multiple
99 options. By default, no filesystem types are excluded. See \fB\-\-all\fR
100 for ommited defaults.
103 Append a size letter such as \fBM\fR for megabytes to each size. (SI
104 is the International System of Units, which defines these letters) Powers
105 of 10 are used, not 2; \fBM\fR stands for 1,000,000 bytes.
107 .B "\-P, \-\-portability"
110 output format. This is like the default format
111 except that a) the information about each filesystem is always
112 printed on exactly one line; a mount device is never put on a line
113 by itself. This means that if the mount device name is more than
114 20 characters long (e.g., for some network mounts), the columns
115 are misaligned. b) Rounding is upwards. c) Column headers match POSIX.
117 .B "\-T, \-\-print\-type"
118 Print each filesystem's type. See
121 .B \-\-block\-size=\fISIZE
122 Set the block size to \fISIZE\fR, overriding the value of the environment
128 before getting any usage data.
131 run significantly faster, but on some systems (notably SunOS)
132 the results may be slightly out of date. This is the default.
137 before getting any usage data. On some systems
138 (notably SunOS), doing this yields more up to date results,
139 but in general this option makes
141 much slower, especially when there are many or very busy filesystems.
142 .SH "GNU STANDARD OPTIONS"
145 Print a usage message on standard output and exit successfully.
148 Print version information on standard output, then exit successfully.
151 Terminate option list.
153 The default output file block size is 1024 bytes (or 512 if \fBPOSIXLY_CORRECT\fR).
154 You may change this value by setting any of the following environment
155 variables, which are overriden if a \fB\-\-block\-size=\fISIZE\fR is given.
157 In order of precedence:
158 .BR DF_BLOCK_SIZE ", " BLOCK_SIZE ", " POSIXLY_CORRECT .
160 The values for these variables can be either a number, \fBhuman\-readable\fR, or
161 \fBsi\fR. Numbers may be followed by a size letter to specify a multiple of that
162 size, and a \fBB\fR to select normal bytes or a \fBD\fR to select
163 decimal "commercial" bytes. For example `BLOCK_SIZE=1KB' is equal to
164 `BLOCK_SIZE=1024' and `BLOCK_SIZE=1KD' is equal to `BLOCK_SIZE=1000'
166 The following letters are recognized (and used when printing with
167 \fB\-\-human\-readable\fR or \fB\-\-si\fR)
170 kilo: 2^10 = 1024 for \fB\-\-human-readable\fR, or 10^3 = 1000 for \fB\-\-si\fR
173 Mega: 2^20 = 1,048,576 or 10^6 = 1,000,000
176 Giga: 2^30 = 1,073,741,824 or 10^9 = 1,000,000,000
179 Tera: 2^40 = 1,099,511,627,776 or 10^12 = 1,000,000,000,000
182 Peta: 2^50 = 1,125,899,906,842,624 or 10^15 = 1,000,000,000,000,000
185 Exa: 2^60 = 1,152,921,504,606,846,976 or 10^18 = 1,000,000,000,000,000,000
188 Zetta: 2^70 = 1,180,591,620,717,411,303,424 or 10^21 =
189 1,000,000,000,000,000,000,000
192 Yotta: 2^80 = 1,208,925,819,614,629,174,706,176 or 10^24 =
193 1,000,000,000,000,000,000,000,000
195 The variables DF_BLOCK_SIZE, BLOCK_SIZE and POSIXLY_CORRECT determine the
196 choice of the output file block size.
197 The variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES have the
204 Disk usage is rounded upwards, free space downwards.
208 as found in the fileutils-4.1 package;
209 other versions may differ slightly. Mail corrections and additions to
210 aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@ragnar-hojland.com
211 Report bugs in the program to bug-fileutils@gnu.org.