xref: /freebsd/bin/df/df.1 (revision 17ee9d00bc1ae1e598c38f25826f861e4bc6c3ce)
1.\" Copyright (c) 1989, 1990, 1993
2.\"	The Regents of the University of California.  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.\"
32.\"     @(#)df.1	8.2 (Berkeley) 1/13/94
33.\"	$Id$
34.\"
35.Dd January 13, 1994
36.Dt DF 1
37.Os BSD 4
38.Sh NAME
39.Nm df
40.Nd display free disk space
41.Sh SYNOPSIS
42.Nm df
43.Op Fl ink
44.Op Fl t Ar type
45.Op Ar file | Ar filesystem ...
46.Sh DESCRIPTION
47.Nm Df
48displays statistics about the amount of free disk space on the specified
49.Ar filesystem
50or on the filesystem of which
51.Ar file
52is a part.
53Values are displayed in 512-byte per block block counts.
54If neither a file or a filesystem operand is specified,
55statistics for all mounted filesystems are displayed
56(subject to the
57.Fl t
58option below).
59.Pp
60The following options are available:
61.Bl -tag -width Ds
62.It Fl i
63Include statistics on the number of free inodes.
64.It Fl k
65Use 1024-byte (1-Kbyte) blocks rather than the default.  Note that
66this overrides the
67.Ev BLOCKSIZE
68specification from the environment.
69.It Fl n
70Print out the previously obtained statistics from the filesystems.
71This option should be used if it is possible that one or more
72filesystems are in a state such that they will not be able to provide
73statistics without a long delay.
74When this option is specified,
75.Nm df
76will not request new statistics from the filesystems, but will respond
77with the possibly stale statistics that were previously obtained.
78.It Fl t
79Only print out statistics for filesystems of the specified types.
80The recognized types are:
81ufs, nfs, mfs, lfs, msdos, fdesc, portal, kernfs, procfs, afs and isofs.
82along with the aggregates:
83all (the default),
84local (ufs, mfs, lfs, msdos, isofs),
85and misc (fdesc, portal, kernfs, procfs).
86The string ``no'' may be prepending to a type to get its complement
87(e.g. ``nonfs'' to get non-NFS filesystems).  The first
88.Fl t
89option overrides the default, additional such options will add to
90(or subtract from) the current set of types; e.g. either
91``df -t ufs -t lfs''
92or
93``df -t local -t nomfs''
94will display statistics for UFS and LFS filesystems.
95.El
96.Sh ENVIRONMENTAL VARIABLES
97.Bl -tag -width BLOCKSIZE
98.It Ev BLOCKSIZE
99If the environmental variable
100.Ev BLOCKSIZE
101is set, the block counts will be displayed in units of that size block.
102.El
103.Sh BUGS
104The
105.Fl n
106and
107.Fl t
108flags are ignored if a file or filesystem is specified.
109.Sh SEE ALSO
110.Xr quota 1 ,
111.Xr statfs 2 ,
112.Xr fstatfs 2 ,
113.Xr getfsstat 2 ,
114.Xr getmntinfo 3 ,
115.Xr fstab 5 ,
116.Xr mount 8 ,
117.Xr quot 8
118.Sh HISTORY
119A
120.Nm df
121command appeared in
122.At v6 .
123