Just talked with James - there's another, better way to go about this.
[unix-history] / bin / df / df.1
CommitLineData
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
46displays statistics about the amount of free disk space on the specified
47.Ar filesystem
48or on the filesystem of which
49.Ar file
50is a part.
ad401f1c
NW
51Values are displayed in 512-byte per block block counts,
52unless the
53.Fl k
54option is specified, or the
55.Ev BLOCKSIZE
56environment variable is set (see below).
15637ed4
RG
57If neither a file or a filesystem operand is specified,
58statistics for all mounted filesystems are displayed.
59.Pp
60The following options are available:
61.Bl -tag -width Ds
62.It Fl i
63Include statistics on the number of free inodes.
ad401f1c
NW
64.It Fl k
65The block counts are forced to be in 1K (1024 8-bit bytes) size blocks.
15637ed4
RG
66.It Fl n
67Print out the previously obtained statistics from the filesystems.
68This option should be used if it is possible that one or more
69filesystems are in a state such that they will not be able to provide
70statistics without a long delay.
71When this option is specified,
72.Nm df
73will not request new statistics from the filesystems, but will respond
74with 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
79If the environmental variable
80.Ev BLOCKSIZE
81is set, the block counts will be displayed in units of that size block.
82.El
15637ed4
RG
83.Sh BUGS
84The
85.Fl n
86flag 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
97A
98.Nm df
99command appeared in
100.At v6 .