xref: /freebsd/bin/df/df.1 (revision 7f3dea244c40159a41ab22da77a434d7c5b5e85a)
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.3 (Berkeley) 5/8/95
33.\" $FreeBSD$
34.\"
35.Dd May 8, 1995
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 ikn
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 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
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.
80More than one type may be specified in a comma separated list.
81The list of filesystem types can be prefixed with
82.Dq no
83to specify the filesystem types for which action should
84.Em not
85be taken.
86For example, the
87.Nm
88command:
89.Bd -literal -offset indent
90df -t nonfs,mfs
91.Ed
92.Pp
93lists all filesystems except those of type
94.Tn NFS
95and
96.Tn MFS .
97The
98.Xr lsvfs 1
99command can be used to find out the types of filesystems
100that are available on the system.
101.El
102.Sh ENVIRONMENT
103.Bl -tag -width BLOCKSIZE
104.It Ev BLOCKSIZE
105If the environment variable
106.Ev BLOCKSIZE
107is set, the block counts will be displayed in units of that size block.
108.El
109.Sh BUGS
110The
111.Fl n
112and
113.Fl t
114flags are ignored if a file or filesystem is specified.
115.Sh SEE ALSO
116.Xr lsvfs 1 ,
117.Xr quota 1 ,
118.Xr fstatfs 2 ,
119.Xr getfsstat 2 ,
120.Xr statfs 2 ,
121.Xr getmntinfo 3 ,
122.Xr fstab 5 ,
123.Xr mount 8 ,
124.Xr quot 8
125.Sh HISTORY
126A
127.Nm
128command appeared in
129.At v1 .
130