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: 614b88c807SRodney W. Grimes.Bl -tag -width Ds 625b42dac8SJulian Elischer.It Fl a 635b42dac8SJulian ElischerShow all mount points, including those that were mounted with the MNT_IGNORE 645b42dac8SJulian Elischerflag. 65dd6d33e8SMichael Haro.It Fl b 66eccea571SRuslan ErmilovUse 512-byte blocks rather than the default. 67eccea571SRuslan ErmilovNote that 68dd6d33e8SMichael Harothis overrides the 69dd6d33e8SMichael Haro.Ev BLOCKSIZE 70dd6d33e8SMichael Harospecification from the environment. 71076419d2SDavid E. O'Brien.It Fl c 72076419d2SDavid E. O'BrienDisplay a grand total. 7393a3fa19SJohn W. De Boskey.It Fl g 74eccea571SRuslan ErmilovUse 1073741824-byte (1-Gbyte) blocks rather than the default. 75eccea571SRuslan ErmilovNote that 7693a3fa19SJohn W. De Boskeythis overrides the 7793a3fa19SJohn W. De Boskey.Ev BLOCKSIZE 7893a3fa19SJohn W. De Boskeyspecification from the environment. 79dd6d33e8SMichael Haro.It Fl H 80eccea571SRuslan Ermilov"Human-readable" output. 81eccea571SRuslan ErmilovUse unit suffixes: Byte, Kilobyte, Megabyte, 82dd6d33e8SMichael HaroGigabyte, Terabyte and Petabyte in order to reduce the number of 83bf88fa93STom Rhodesdigits to four or fewer using base 10 for sizes. 84dd6d33e8SMichael Haro.It Fl h 85eccea571SRuslan Ermilov"Human-readable" output. 86eccea571SRuslan ErmilovUse unit suffixes: Byte, Kilobyte, Megabyte, 87dd6d33e8SMichael HaroGigabyte, Terabyte and Petabyte in order to reduce the number of 88bf88fa93STom Rhodesdigits to four or fewer using base 2 for sizes. 894b88c807SRodney W. Grimes.It Fl i 904b88c807SRodney W. GrimesInclude statistics on the number of free inodes. 917f0eabfdSGarrett Wollman.It Fl k 92eccea571SRuslan ErmilovUse 1024-byte (1-Kbyte) blocks rather than the default. 93eccea571SRuslan ErmilovNote that 947f0eabfdSGarrett Wollmanthis overrides the 957f0eabfdSGarrett Wollman.Ev BLOCKSIZE 967f0eabfdSGarrett Wollmanspecification from the environment. 97a25695c3SJim Pirzyk.It Fl l 98a25695c3SJim PirzykOnly display information about locally-mounted file systems. 99dd6d33e8SMichael Haro.It Fl m 100eccea571SRuslan ErmilovUse 1048576-byte (1-Mbyte) blocks rather than the default. 101eccea571SRuslan ErmilovNote that 102dd6d33e8SMichael Harothis overrides the 103dd6d33e8SMichael Haro.Ev BLOCKSIZE 104dd6d33e8SMichael Harospecification from the environment. 1054b88c807SRodney W. Grimes.It Fl n 1064b88c807SRodney W. GrimesPrint out the previously obtained statistics from the file systems. 1074b88c807SRodney W. GrimesThis option should be used if it is possible that one or more 1084b88c807SRodney W. Grimesfile systems are in a state such that they will not be able to provide 1094b88c807SRodney W. Grimesstatistics without a long delay. 1104b88c807SRodney W. GrimesWhen this option is specified, 111d072138aSPhilippe Charnier.Nm 1124b88c807SRodney W. Grimeswill not request new statistics from the file systems, but will respond 1134b88c807SRodney W. Grimeswith the possibly stale statistics that were previously obtained. 114dd6d33e8SMichael Haro.It Fl P 115dd6d33e8SMichael HaroUse POSIX compliant output of 512-byte blocks rather than the default. 116dd6d33e8SMichael HaroNote that this overrides the 117dd6d33e8SMichael Haro.Ev BLOCKSIZE 118dd6d33e8SMichael Harospecification from the environment. 1194b88c807SRodney W. Grimes.It Fl t 1204b88c807SRodney W. GrimesOnly print out statistics for file systems of the specified types. 121611d1296SBruce EvansMore than one type may be specified in a comma separated list. 122611d1296SBruce EvansThe list of file system types can be prefixed with 123611d1296SBruce Evans.Dq no 124611d1296SBruce Evansto specify the file system types for which action should 125611d1296SBruce Evans.Em not 126611d1296SBruce Evansbe taken. 127611d1296SBruce EvansFor example, the 128d072138aSPhilippe Charnier.Nm 129611d1296SBruce Evanscommand: 130611d1296SBruce Evans.Bd -literal -offset indent 1310b381bf1SRuslan Ermilovdf -t nonfs,nullfs 132611d1296SBruce Evans.Ed 133611d1296SBruce Evans.Pp 134611d1296SBruce Evanslists all file systems except those of type 135611d1296SBruce Evans.Tn NFS 136611d1296SBruce Evansand 1370b381bf1SRuslan Ermilov.Tn NULLFS . 138611d1296SBruce EvansThe 139b84897d1SSheldon Hearn.Xr lsvfs 1 140611d1296SBruce Evanscommand can be used to find out the types of file systems 141b84897d1SSheldon Hearnthat are available on the system. 1424b88c807SRodney W. Grimes.El 14384717b42SPoul-Henning Kamp.Sh ENVIRONMENT 1444b88c807SRodney W. Grimes.Bl -tag -width BLOCKSIZE 1454b88c807SRodney W. Grimes.It Ev BLOCKSIZE 14634384756SPhilippe CharnierIf the environment variable 1474b88c807SRodney W. Grimes.Ev BLOCKSIZE 1484b88c807SRodney W. Grimesis set, the block counts will be displayed in units of that size block. 1494b88c807SRodney W. Grimes.El 1504b88c807SRodney W. Grimes.Sh BUGS 1514b88c807SRodney W. GrimesThe 1524b88c807SRodney W. Grimes.Fl n 1536fa13ec0SRuslan Ermilovflag is ignored if a file or file system is specified. 1546fa13ec0SRuslan ErmilovAlso, if a mount 155239c9e60SChristian S.J. Peronpoint is not accessible by the user, it is possible that the file system 156239c9e60SChristian S.J. Peroninformation could be stale. 1574b88c807SRodney W. Grimes.Sh SEE ALSO 158b84897d1SSheldon Hearn.Xr lsvfs 1 , 1594b88c807SRodney W. Grimes.Xr quota 1 , 1604b88c807SRodney W. Grimes.Xr fstatfs 2 , 1614b88c807SRodney W. Grimes.Xr getfsstat 2 , 162af202156SWolfram Schneider.Xr statfs 2 , 1634b88c807SRodney W. Grimes.Xr getmntinfo 3 , 1644b88c807SRodney W. Grimes.Xr fstab 5 , 1654b88c807SRodney W. Grimes.Xr mount 8 , 166b84897d1SSheldon Hearn.Xr quot 8 1674b88c807SRodney W. Grimes.Sh HISTORY 1684b88c807SRodney W. GrimesA 169d072138aSPhilippe Charnier.Nm 1704b88c807SRodney W. Grimescommand appeared in 171b8923d4cSWolfram Schneider.At v1 . 172