1 .\" $NetBSD: df.1,v 1.46.6.1 2018/08/28 13:21:42 martin Exp $
3 .\" Copyright (c) 1989, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)df.1 8.2 (Berkeley) 1/13/92
37 .Nd display free disk space
41 .Op Fl Ghkm | Fl ihkm | Fl Pk
43 .Op Ar file | Ar file_system ...
46 displays statistics about the amount of free disk space on the specified
48 or on the file system of which
51 By default, all sizes are reported in 512-byte block counts.
52 If neither a file or a
55 statistics for all mounted file systems are displayed
62 Note that the printed count of available blocks takes
64 into account, and thus will be negative when the number of free blocks
65 on the filesystem is less than
68 The following options are available:
71 Show all mount points,
72 including those that were mounted with the
76 Display all the fields of the structure(s) returned by
78 This option cannot be used with the
82 options, and it is modelled after the Solaris
85 This option will override the
91 options, as well as any setting of
96 option causes the numbers to be reported in gigabytes (1024*1024*1024
99 "Human-readable" output.
100 Use unit suffixes: Byte, Kilobyte, Megabyte,
101 Gigabyte, Terabyte, Petabyte, Exabyte in order to reduce the number of
102 digits to four or less.
104 Include statistics on the number of free inodes.
106 By default, all sizes are reported in 512-byte block counts.
109 option causes the numbers to be reported in kilobytes (1024 bytes).
111 Display statistics only about mounted file systems with the
114 If a non-local file system is given as an argument, a
115 warning is issued and no information is given on that file system.
119 option causes the numbers to be reported in megabytes (1024*1024 bytes).
121 Print out the previously obtained statistics from the file systems.
122 This option should be used if it is possible that one or more
123 file systems are in a state such that they will not be able to provide
124 statistics without a long delay.
125 When this option is specified,
127 will not request new statistics from the file systems, but will respond
128 with the possibly stale statistics that were previously obtained.
130 Produce output in the following portable format:
136 option are specified, the output will be preceded by the following header
137 line, formatted to match the data following it:
139 "Filesystem 1024-blocks Used Available Capacity Mounted on\en"
144 option is specified without the
146 options, the output will be preceded by the following header line,
147 formatted to match the data following it:
149 "Filesystem \*[Lt]blksize\*[Gt]-blocks Used Available Capacity Mounted on\en"
152 The header line is followed by data formatted as follows:
154 "%s %d %d %d %d%% %s\en", \*[Lt]file system name\*[Gt], \*[Lt]total space\*[Gt],
155 \*[Lt]space used\*[Gt], \*[Lt]space free\*[Gt], \*[Lt]percentage used\*[Gt],
156 \*[Lt]file system root\*[Gt]
161 option may not be specified with
164 Is used to indicate the actions should only be taken on
165 filesystems of the specified type.
166 More than one type may be specified in a comma-separated list.
167 The list of filesystem types can be prefixed with
169 to specify the filesystem types for which action should
172 If a file system is given on the command line that is not of
173 the specified type, a warning is issued and no information is given on
177 .Bl -tag -width BLOCKSIZE
179 If the environment variable
187 options are not specified, the block counts will be displayed in units of that