xref: /freebsd/bin/df/df.1 (revision 975ab35963ee0a816f81d592ec819b6ae18b6413)
19ddb49cbSWarner Losh.\"-
24b88c807SRodney W. Grimes.\" Copyright (c) 1989, 1990, 1993
34b88c807SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
44b88c807SRodney W. Grimes.\"
54b88c807SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
64b88c807SRodney W. Grimes.\" modification, are permitted provided that the following conditions
74b88c807SRodney W. Grimes.\" are met:
84b88c807SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
94b88c807SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
104b88c807SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
114b88c807SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
124b88c807SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
134b88c807SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
144b88c807SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
154b88c807SRodney W. Grimes.\"    without specific prior written permission.
164b88c807SRodney W. Grimes.\"
174b88c807SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
184b88c807SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
194b88c807SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
204b88c807SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
214b88c807SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
224b88c807SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
234b88c807SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
244b88c807SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
254b88c807SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
264b88c807SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
274b88c807SRodney W. Grimes.\" SUCH DAMAGE.
284b88c807SRodney W. Grimes.\"
298a166df9SSteve Price.\"     @(#)df.1	8.3 (Berkeley) 5/8/95
302a456239SPeter Wemm.\" $FreeBSD$
314b88c807SRodney W. Grimes.\"
322360f509SRuslan Ermilov.Dd April 22, 2004
334b88c807SRodney W. Grimes.Dt DF 1
34caa2db3bSRuslan Ermilov.Os
354b88c807SRodney W. Grimes.Sh NAME
364b88c807SRodney W. Grimes.Nm df
374b88c807SRodney W. Grimes.Nd display free disk space
384b88c807SRodney W. Grimes.Sh SYNOPSIS
39be8b1497SRuslan Ermilov.Nm
402360f509SRuslan Ermilov.Op Fl b | g | H | h | k | m | P
41076419d2SDavid E. O'Brien.Op Fl aciln
424b88c807SRodney W. Grimes.Op Fl t Ar type
43d0353b83SRuslan Ermilov.Op Ar file | filesystem ...
444b88c807SRodney W. Grimes.Sh DESCRIPTION
45e004acc8SPhilippe CharnierThe
46e004acc8SPhilippe Charnier.Nm
47e004acc8SPhilippe Charnierutility
484b88c807SRodney W. Grimesdisplays statistics about the amount of free disk space on the specified
494b88c807SRodney W. Grimes.Ar file system
504b88c807SRodney W. Grimesor on the file system of which
514b88c807SRodney W. Grimes.Ar file
524b88c807SRodney W. Grimesis a part.
5343d1df33SAlexander LangerValues are displayed in 512-byte per block counts.
544b88c807SRodney W. GrimesIf neither a file or a file system operand is specified,
554b88c807SRodney W. Grimesstatistics for all mounted file systems are displayed
564b88c807SRodney W. Grimes(subject to the
574b88c807SRodney W. Grimes.Fl t
584b88c807SRodney W. Grimesoption below).
594b88c807SRodney W. Grimes.Pp
604b88c807SRodney W. GrimesThe following options are available:
61975ab359SRuslan Ermilov.Bl -tag -width indent
625b42dac8SJulian Elischer.It Fl a
63975ab359SRuslan ErmilovShow all mount points, including those that were mounted with the
64975ab359SRuslan Ermilov.Dv MNT_IGNORE
655b42dac8SJulian Elischerflag.
66dd6d33e8SMichael Haro.It Fl b
67eccea571SRuslan ErmilovUse 512-byte blocks rather than the default.
68eccea571SRuslan ErmilovNote that
69dd6d33e8SMichael Harothis overrides the
70dd6d33e8SMichael Haro.Ev BLOCKSIZE
71dd6d33e8SMichael Harospecification from the environment.
72076419d2SDavid E. O'Brien.It Fl c
73076419d2SDavid E. O'BrienDisplay a grand total.
7493a3fa19SJohn W. De Boskey.It Fl g
75eccea571SRuslan ErmilovUse 1073741824-byte (1-Gbyte) blocks rather than the default.
76eccea571SRuslan ErmilovNote that
7793a3fa19SJohn W. De Boskeythis overrides the
7893a3fa19SJohn W. De Boskey.Ev BLOCKSIZE
7993a3fa19SJohn W. De Boskeyspecification from the environment.
80dd6d33e8SMichael Haro.It Fl H
81eccea571SRuslan Ermilov"Human-readable" output.
82eccea571SRuslan ErmilovUse unit suffixes: Byte, Kilobyte, Megabyte,
83dd6d33e8SMichael HaroGigabyte, Terabyte and Petabyte in order to reduce the number of
84bf88fa93STom Rhodesdigits to four or fewer using base 10 for sizes.
85dd6d33e8SMichael Haro.It Fl h
86eccea571SRuslan Ermilov"Human-readable" output.
87eccea571SRuslan ErmilovUse unit suffixes: Byte, Kilobyte, Megabyte,
88dd6d33e8SMichael HaroGigabyte, Terabyte and Petabyte in order to reduce the number of
89bf88fa93STom Rhodesdigits to four or fewer using base 2 for sizes.
904b88c807SRodney W. Grimes.It Fl i
914b88c807SRodney W. GrimesInclude statistics on the number of free inodes.
927f0eabfdSGarrett Wollman.It Fl k
93eccea571SRuslan ErmilovUse 1024-byte (1-Kbyte) blocks rather than the default.
94eccea571SRuslan ErmilovNote that
957f0eabfdSGarrett Wollmanthis overrides the
967f0eabfdSGarrett Wollman.Ev BLOCKSIZE
977f0eabfdSGarrett Wollmanspecification from the environment.
98a25695c3SJim Pirzyk.It Fl l
99a25695c3SJim PirzykOnly display information about locally-mounted file systems.
100dd6d33e8SMichael Haro.It Fl m
101eccea571SRuslan ErmilovUse 1048576-byte (1-Mbyte) blocks rather than the default.
102eccea571SRuslan ErmilovNote that
103dd6d33e8SMichael Harothis overrides the
104dd6d33e8SMichael Haro.Ev BLOCKSIZE
105dd6d33e8SMichael Harospecification from the environment.
1064b88c807SRodney W. Grimes.It Fl n
1074b88c807SRodney W. GrimesPrint out the previously obtained statistics from the file systems.
1084b88c807SRodney W. GrimesThis option should be used if it is possible that one or more
1094b88c807SRodney W. Grimesfile systems are in a state such that they will not be able to provide
1104b88c807SRodney W. Grimesstatistics without a long delay.
1114b88c807SRodney W. GrimesWhen this option is specified,
112d072138aSPhilippe Charnier.Nm
1134b88c807SRodney W. Grimeswill not request new statistics from the file systems, but will respond
1144b88c807SRodney W. Grimeswith the possibly stale statistics that were previously obtained.
115dd6d33e8SMichael Haro.It Fl P
116dd6d33e8SMichael HaroUse POSIX compliant output of 512-byte blocks rather than the default.
117dd6d33e8SMichael HaroNote that this overrides the
118dd6d33e8SMichael Haro.Ev BLOCKSIZE
119dd6d33e8SMichael Harospecification from the environment.
1204b88c807SRodney W. Grimes.It Fl t
1214b88c807SRodney W. GrimesOnly print out statistics for file systems of the specified types.
122611d1296SBruce EvansMore than one type may be specified in a comma separated list.
123611d1296SBruce EvansThe list of file system types can be prefixed with
124611d1296SBruce Evans.Dq no
125611d1296SBruce Evansto specify the file system types for which action should
126611d1296SBruce Evans.Em not
127611d1296SBruce Evansbe taken.
128611d1296SBruce EvansFor example, the
129d072138aSPhilippe Charnier.Nm
130611d1296SBruce Evanscommand:
131611d1296SBruce Evans.Bd -literal -offset indent
1320b381bf1SRuslan Ermilovdf -t nonfs,nullfs
133611d1296SBruce Evans.Ed
134611d1296SBruce Evans.Pp
135611d1296SBruce Evanslists all file systems except those of type
136611d1296SBruce Evans.Tn NFS
137611d1296SBruce Evansand
1380b381bf1SRuslan Ermilov.Tn NULLFS .
139611d1296SBruce EvansThe
140b84897d1SSheldon Hearn.Xr lsvfs 1
141611d1296SBruce Evanscommand can be used to find out the types of file systems
142b84897d1SSheldon Hearnthat are available on the system.
1434b88c807SRodney W. Grimes.El
14484717b42SPoul-Henning Kamp.Sh ENVIRONMENT
1454b88c807SRodney W. Grimes.Bl -tag -width BLOCKSIZE
1464b88c807SRodney W. Grimes.It Ev BLOCKSIZE
14734384756SPhilippe CharnierIf the environment variable
1484b88c807SRodney W. Grimes.Ev BLOCKSIZE
1494b88c807SRodney W. Grimesis set, the block counts will be displayed in units of that size block.
1504b88c807SRodney W. Grimes.El
1514b88c807SRodney W. Grimes.Sh SEE ALSO
152b84897d1SSheldon Hearn.Xr lsvfs 1 ,
1534b88c807SRodney W. Grimes.Xr quota 1 ,
1544b88c807SRodney W. Grimes.Xr fstatfs 2 ,
1554b88c807SRodney W. Grimes.Xr getfsstat 2 ,
156af202156SWolfram Schneider.Xr statfs 2 ,
1574b88c807SRodney W. Grimes.Xr getmntinfo 3 ,
1584b88c807SRodney W. Grimes.Xr fstab 5 ,
1594b88c807SRodney W. Grimes.Xr mount 8 ,
160b84897d1SSheldon Hearn.Xr quot 8
1614b88c807SRodney W. Grimes.Sh HISTORY
1624b88c807SRodney W. GrimesA
163d072138aSPhilippe Charnier.Nm
1644b88c807SRodney W. Grimescommand appeared in
165b8923d4cSWolfram Schneider.At v1 .
1666fca4c7cSRuslan Ermilov.Sh BUGS
1676fca4c7cSRuslan ErmilovThe
1686fca4c7cSRuslan Ermilov.Fl n
1696fca4c7cSRuslan Ermilovflag is ignored if a file or file system is specified.
1706fca4c7cSRuslan ErmilovAlso, if a mount
1716fca4c7cSRuslan Ermilovpoint is not accessible by the user, it is possible that the file system
1726fca4c7cSRuslan Ermilovinformation could be stale.
173