df

From NetBSD Wiki

Jump to: navigation, search

df(1) displays statistics about the amount of free disk space on the specified file system or on the file system of which file is a part. By default, all sizes are reported in 512-byte block counts. If neither a file or a file system operand is specified, statistics for all mounted file systems are displayed (subject to the -l and -t options below).

% df
Filesystem  512-blocks      Used     Avail Capacity  Mounted on
/dev/wd0a     16011052   7478572   7731928    49%    /
kernfs               2         2         0   100%    /kern

Use option -h for human readable output. This option is only available on NetBSD > 2.0

% df -h
Filesystem    Size      Used     Avail Capacity  Mounted on
/dev/wd0a     7.6G     3.6G      3.7G    49%    /
kernfs        1.0K     1.0K        0B   100%    /kern

Reserved Space

As you may noticed on the previous df example, 3.6 plus 3.7 does not equal 7.6. Depending on the filesystem you use, there is disk space reserved from normal users, only for root. This is normally 5% on FFS and 10% on LFS. If the reserved space is used, df may displays negative values or values above 100%.

See also

View source code (Please report any bugs or suggestions here).

Retrieved from "http://wiki.netbsd.se/df"
Personal tools