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.\" $Id: df.1,v 1.10 1997/03/13 17:32:39 bde Exp $ 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 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. 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 df 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 sysctl 8 99command can be used to find out the types of filesystems 100that are available on the system: 101.Bd -literal -offset indent 102sysctl vfs 103.Ed 104.El 105.Sh ENVIRONMENT VARIABLES 106.Bl -tag -width BLOCKSIZE 107.It Ev BLOCKSIZE 108If the environment variable 109.Ev BLOCKSIZE 110is set, the block counts will be displayed in units of that size block. 111.El 112.Sh BUGS 113The 114.Fl n 115and 116.Fl t 117flags are ignored if a file or filesystem is specified. 118.Sh SEE ALSO 119.Xr quota 1 , 120.Xr fstatfs 2 , 121.Xr getfsstat 2 , 122.Xr statfs 2 , 123.Xr getmntinfo 3 , 124.Xr fstab 5 , 125.Xr mount 8 , 126.Xr quot 8 , 127.Xr sysctl 8 128.Sh HISTORY 129A 130.Nm df 131command appeared in 132.At v1 . 133