Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | .\" Copyright (c) 1989, 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions | |
6 | .\" are met: | |
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. | |
19 | .\" | |
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 | |
30 | .\" SUCH DAMAGE. | |
31 | .\" | |
4e97a0eb | 32 | .\" @(#)df.1 6.10 (Berkeley) 3/1/92 |
15637ed4 | 33 | .\" |
4e97a0eb | 34 | .Dd March 1, 1992 |
15637ed4 RG |
35 | .Dt DF 1 |
36 | .Os BSD 4 | |
37 | .Sh NAME | |
38 | .Nm df | |
39 | .Nd display free disk space | |
40 | .Sh SYNOPSIS | |
41 | .Nm df | |
ad401f1c | 42 | .Op Fl ikn |
15637ed4 RG |
43 | .Op Ar file | Ar filesystem ... |
44 | .Sh DESCRIPTION | |
45 | .Nm Df | |
46 | displays statistics about the amount of free disk space on the specified | |
47 | .Ar filesystem | |
48 | or on the filesystem of which | |
49 | .Ar file | |
50 | is a part. | |
ad401f1c NW |
51 | Values are displayed in 512-byte per block block counts, |
52 | unless the | |
53 | .Fl k | |
54 | option is specified, or the | |
55 | .Ev BLOCKSIZE | |
56 | environment variable is set (see below). | |
15637ed4 RG |
57 | If neither a file or a filesystem operand is specified, |
58 | statistics for all mounted filesystems are displayed. | |
59 | .Pp | |
60 | The following options are available: | |
61 | .Bl -tag -width Ds | |
62 | .It Fl i | |
63 | Include statistics on the number of free inodes. | |
ad401f1c NW |
64 | .It Fl k |
65 | The block counts are forced to be in 1K (1024 8-bit bytes) size blocks. | |
15637ed4 RG |
66 | .It Fl n |
67 | Print out the previously obtained statistics from the filesystems. | |
68 | This option should be used if it is possible that one or more | |
69 | filesystems are in a state such that they will not be able to provide | |
70 | statistics without a long delay. | |
71 | When this option is specified, | |
72 | .Nm df | |
73 | will not request new statistics from the filesystems, but will respond | |
74 | with the possibly stale statistics that were previously obtained. | |
75 | .El | |
4e97a0eb NW |
76 | .Sh ENVIRONMENTAL VARIABLES |
77 | .Bl -tag -width BLOCKSIZE | |
78 | .It Ev BLOCKSIZE | |
79 | If the environmental variable | |
80 | .Ev BLOCKSIZE | |
81 | is set, the block counts will be displayed in units of that size block. | |
82 | .El | |
15637ed4 RG |
83 | .Sh BUGS |
84 | The | |
85 | .Fl n | |
86 | flag is ignored if a file or filesystem is specified. | |
87 | .Sh SEE ALSO | |
88 | .Xr quota 1 , | |
89 | .Xr statfs 2 , | |
90 | .Xr fstatfs 2 , | |
91 | .Xr getfsstat 2 , | |
92 | .Xr getmntinfo 3 , | |
93 | .Xr fstab 5 , | |
94 | .Xr mount 8 , | |
95 | .Xr quot 8 | |
96 | .Sh HISTORY | |
97 | A | |
98 | .Nm df | |
99 | command appeared in | |
100 | .At v6 . |