1 .\" Copyright (c) 1989, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)df.1 8.3 (Berkeley) 5/8/95
33 .\" $FreeBSD: src/bin/df/df.1,v 1.18.2.7 2002/04/22 22:17:36 keramida Exp $
40 .Nd display free disk space
50 .Op Ar file | filesystem ...
60 .Op Ar file | filesystem ...
65 displays statistics about the amount of free disk space on the specified
67 or on the filesystem of which
70 Values are displayed in 512-byte per block counts.
71 If neither a file or a filesystem operand is specified,
72 statistics for all mounted filesystems are displayed
77 The following options are available:
80 Show all mount points, including those that were mounted with the MNT_IGNORE
83 Use (the default) 512-byte blocks.
84 This is only useful as a way to override an
86 specification from the environment.
88 Use 1073741824-byte (1-Gbyte) blocks rather than the default.
89 Note that this overrides the
91 specification from the environment.
93 "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte,
94 Gigabyte, Terabyte and Petabyte in order to reduce the number of
95 digits to three or less using base 10 for sizes.
97 "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte,
98 Gigabyte, Terabyte and Petabyte in order to reduce the number of
99 digits to three or less using base 2 for sizes.
101 Include statistics on the number of free inodes. This option is now the default to conform to
105 to suppress this output.
107 Use 1024-byte (1-Kbyte) blocks, rather than the default.
108 Note that this overrides the
110 specification from the environment.
112 Only display information about locally-mounted filesystems.
114 Use 1048576-byte (1-Mbyte) blocks rather than the default. Note that
117 specification from the environment.
119 Print out the previously obtained statistics from the filesystems.
120 This option should be used if it is possible that one or more
121 filesystems are in a state such that they will not be able to provide
122 statistics without a long delay.
123 When this option is specified,
125 will not request new statistics from the filesystems, but will respond
126 with the possibly stale statistics that were previously obtained.
128 Use (the default) 512-byte blocks.
129 This is only useful as a way to override an
131 specification from the environment.
133 Only print out statistics for filesystems of the specified types.
134 More than one type may be specified in a comma separated list.
135 The list of filesystem types can be prefixed with
137 to specify the filesystem types for which action should
143 .Bd -literal -offset indent
147 lists all filesystems except those of type
153 command can be used to find out the types of filesystems
154 that are available on the system.
156 If used with no arguments,
157 this option is a no-op
158 (Mac OS X already prints the total allocated-space figures).
159 If used with an argument, it acts like
161 but this usage is deprecated and should not be relied upon.
164 .Bl -tag -width BLOCKSIZE
166 If the environment variable
168 is set, the block counts will be displayed in units of that size block.
175 flags are ignored if a file or filesystem is specified.
176 .Sh LEGACY DESCRIPTION
177 The "capacity" percentage is normally rounded up to the next higher integer.
178 In legacy mode, it is rounded down to the next lower integer.
184 option are used together,
185 sizes are reported in 1024-blocks.
186 In legacy mode, when the
190 option are used together,
191 the last option specified dictates the reported block size.
195 option is normally a no-op
196 (Mac OS X already prints the total allocated-space figures).
197 In legacy mode, it is equivalent to
200 For more information about legacy mode, see