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.\" 4. Neither the name of the University nor the names of its contributors 13.\" may be used to endorse or promote products derived from this software 14.\" without specific prior written permission. 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)df.1 8.3 (Berkeley) 5/8/95 29.\" $FreeBSD$ 30.\" 31.Dd April 22, 2004 32.Dt DF 1 33.Os 34.Sh NAME 35.Nm df 36.Nd display free disk space 37.Sh SYNOPSIS 38.Nm 39.Op Fl b | g | H | h | k | m | P 40.Op Fl aciln 41.Op Fl t Ar type 42.Op Ar file | filesystem ... 43.Sh DESCRIPTION 44The 45.Nm 46utility 47displays statistics about the amount of free disk space on the specified 48.Ar file system 49or on the file system of which 50.Ar file 51is a part. 52Values are displayed in 512-byte per block counts. 53If neither a file or a file system operand is specified, 54statistics for all mounted file systems are displayed 55(subject to the 56.Fl t 57option below). 58.Pp 59The following options are available: 60.Bl -tag -width Ds 61.It Fl a 62Show all mount points, including those that were mounted with the MNT_IGNORE 63flag. 64.It Fl b 65Use 512-byte blocks rather than the default. 66Note that 67this overrides the 68.Ev BLOCKSIZE 69specification from the environment. 70.It Fl c 71Display a grand total. 72.It Fl g 73Use 1073741824-byte (1-Gbyte) blocks rather than the default. 74Note that 75this overrides the 76.Ev BLOCKSIZE 77specification from the environment. 78.It Fl H 79"Human-readable" output. 80Use unit suffixes: Byte, Kilobyte, Megabyte, 81Gigabyte, Terabyte and Petabyte in order to reduce the number of 82digits to four or fewer using base 10 for sizes. 83.It Fl h 84"Human-readable" output. 85Use unit suffixes: Byte, Kilobyte, Megabyte, 86Gigabyte, Terabyte and Petabyte in order to reduce the number of 87digits to four or fewer using base 2 for sizes. 88.It Fl i 89Include statistics on the number of free inodes. 90.It Fl k 91Use 1024-byte (1-Kbyte) blocks rather than the default. 92Note that 93this overrides the 94.Ev BLOCKSIZE 95specification from the environment. 96.It Fl l 97Only display information about locally-mounted file systems. 98.It Fl m 99Use 1048576-byte (1-Mbyte) blocks rather than the default. 100Note that 101this overrides the 102.Ev BLOCKSIZE 103specification from the environment. 104.It Fl n 105Print out the previously obtained statistics from the file systems. 106This option should be used if it is possible that one or more 107file systems are in a state such that they will not be able to provide 108statistics without a long delay. 109When this option is specified, 110.Nm 111will not request new statistics from the file systems, but will respond 112with the possibly stale statistics that were previously obtained. 113.It Fl P 114Use POSIX compliant output of 512-byte blocks rather than the default. 115Note that this overrides the 116.Ev BLOCKSIZE 117specification from the environment. 118.It Fl t 119Only print out statistics for file systems of the specified types. 120More than one type may be specified in a comma separated list. 121The list of file system types can be prefixed with 122.Dq no 123to specify the file system types for which action should 124.Em not 125be taken. 126For example, the 127.Nm 128command: 129.Bd -literal -offset indent 130df -t nonfs,nullfs 131.Ed 132.Pp 133lists all file systems except those of type 134.Tn NFS 135and 136.Tn NULLFS . 137The 138.Xr lsvfs 1 139command can be used to find out the types of file systems 140that are available on the system. 141.El 142.Sh ENVIRONMENT 143.Bl -tag -width BLOCKSIZE 144.It Ev BLOCKSIZE 145If the environment variable 146.Ev BLOCKSIZE 147is set, the block counts will be displayed in units of that size block. 148.El 149.Sh BUGS 150The 151.Fl n 152flag is ignored if a file or file system is specified. Also, if a mount 153point is not accessible by the user, it is possible that the file system 154information could be stale. 155.Sh SEE ALSO 156.Xr lsvfs 1 , 157.Xr quota 1 , 158.Xr fstatfs 2 , 159.Xr getfsstat 2 , 160.Xr statfs 2 , 161.Xr getmntinfo 3 , 162.Xr fstab 5 , 163.Xr mount 8 , 164.Xr quot 8 165.Sh HISTORY 166A 167.Nm 168command appeared in 169.At v1 . 170