1DF(1) User Commands DF(1)
2
3
4
6 df - report file system space usage
7
9 df [OPTION]... [FILE]...
10
12 This manual page documents the GNU version of df. df displays the
13 amount of space available on the file system containing each file name
14 argument. If no file name is given, the space available on all cur‐
15 rently mounted file systems is shown. Space is shown in 1K blocks by
16 default, unless the environment variable POSIXLY_CORRECT is set, in
17 which case 512-byte blocks are used.
18
19 If an argument is the absolute file name of a device node containing a
20 mounted file system, df shows the space available on that file system
21 rather than on the file system containing the device node. This ver‐
22 sion of df cannot show the space available on unmounted file systems,
23 because on most kinds of systems doing so requires very nonportable in‐
24 timate knowledge of file system structures.
25
27 Show information about the file system on which each FILE resides, or
28 all file systems by default.
29
30 Mandatory arguments to long options are mandatory for short options
31 too.
32
33 -a, --all
34 include pseudo, duplicate, inaccessible file systems
35
36 -B, --block-size=SIZE
37 scale sizes by SIZE before printing them; e.g., '-BM' prints
38 sizes in units of 1,048,576 bytes; see SIZE format below
39
40 --direct
41 show statistics for a file instead of mount point
42
43 -h, --human-readable
44 print sizes in powers of 1024 (e.g., 1023M)
45
46 -H, --si
47 print sizes in powers of 1000 (e.g., 1.1G)
48
49 -i, --inodes
50 list inode information instead of block usage
51
52 -k like --block-size=1K
53
54 -l, --local
55 limit listing to local file systems
56
57 --no-sync
58 do not invoke sync before getting usage info (default)
59
60 --output[=FIELD_LIST]
61 use the output format defined by FIELD_LIST, or print all fields
62 if FIELD_LIST is omitted.
63
64 -P, --portability
65 use the POSIX output format
66
67 --sync invoke sync before getting usage info
68
69 --total
70 elide all entries insignificant to available space, and produce
71 a grand total
72
73 -t, --type=TYPE
74 limit listing to file systems of type TYPE
75
76 -T, --print-type
77 print file system type
78
79 -x, --exclude-type=TYPE
80 limit listing to file systems not of type TYPE
81
82 -v (ignored)
83
84 --help display this help and exit
85
86 --version
87 output version information and exit
88
89 Display values are in units of the first available SIZE from
90 --block-size, and the DF_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environ‐
91 ment variables. Otherwise, units default to 1024 bytes (or 512 if
92 POSIXLY_CORRECT is set).
93
94 The SIZE argument is an integer and optional unit (example: 10K is
95 10*1024). Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,...
96 (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and
97 so on.
98
99 FIELD_LIST is a comma-separated list of columns to be included. Valid
100 field names are: 'source', 'fstype', 'itotal', 'iused', 'iavail', 'ip‐
101 cent', 'size', 'used', 'avail', 'pcent', 'file' and 'target' (see info
102 page).
103
105 Written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.
106
108 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
109 Report any translation bugs to <https://translationproject.org/team/>
110
112 Copyright © 2023 Free Software Foundation, Inc. License GPLv3+: GNU
113 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
114 This is free software: you are free to change and redistribute it.
115 There is NO WARRANTY, to the extent permitted by law.
116
118 Full documentation <https://www.gnu.org/software/coreutils/df>
119 or available locally via: info '(coreutils) df invocation'
120
121
122
123GNU coreutils 9.3 September 2023 DF(1)