diff options
author | mharo <mharo@FreeBSD.org> | 1999-12-15 03:44:09 +0000 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 1999-12-15 03:44:09 +0000 |
commit | a67c7a1db7086ddd78f652b334cd7aa4685f8cb7 (patch) | |
tree | 6dbd0f72c5b94da43e862fa1edcd5f2237d83120 /bin/df/df.1 | |
parent | 61075c3a9d51733f793eca73ba53662a45fe627b (diff) | |
download | FreeBSD-src-a67c7a1db7086ddd78f652b334cd7aa4685f8cb7.zip FreeBSD-src-a67c7a1db7086ddd78f652b334cd7aa4685f8cb7.tar.gz |
add human readable output (-h and -H)
Obtained from: parts of human readable code from OpenBSD
Reviewed by: obrien
add POSIX, byte and megabyte block size ouput flags
PR: 13579 (POSIX flag)
Submitted by: Mike Meyer <mwm@phone.net>
Diffstat (limited to 'bin/df/df.1')
-rw-r--r-- | bin/df/df.1 | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/bin/df/df.1 b/bin/df/df.1 index eb97ccc..3e99fb5 100644 --- a/bin/df/df.1 +++ b/bin/df/df.1 @@ -40,7 +40,8 @@ .Nd display free disk space .Sh SYNOPSIS .Nm df -.Op Fl aikn +.Op Fl b | h | H | k | m | P +.Op Fl ain .Op Fl t Ar type .Op Ar file | Ar filesystem ... .Sh DESCRIPTION @@ -62,6 +63,19 @@ The following options are available: .It Fl a Show all mount points, including those that were mounted with the MNT_IGNORE flag. +.It Fl b +Use 512-byte blocks rather than the default. Note that +this overrides the +.Ev BLOCKSIZE +specification from the environment. +.It Fl H +"Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, +Gigabyte, Terabyte and Petabyte in order to reduce the number of +digits to three or less using base 10 for sizes. +.It Fl h +"Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, +Gigabyte, Terabyte and Petabyte in order to reduce the number of +digits to three or less using base 2 for sizes. .It Fl i Include statistics on the number of free inodes. .It Fl k @@ -69,6 +83,11 @@ Use 1024-byte (1-Kbyte) blocks rather than the default. Note that this overrides the .Ev BLOCKSIZE specification from the environment. +.It Fl m +Use 1048576-byte (1-Mbyte) blocks rather than the default. Note that +this overrides the +.Ev BLOCKSIZE +specification from the environment. .It Fl n Print out the previously obtained statistics from the filesystems. This option should be used if it is possible that one or more @@ -78,6 +97,11 @@ When this option is specified, .Nm will not request new statistics from the filesystems, but will respond with the possibly stale statistics that were previously obtained. +.It Fl P +Use POSIX compliant output of 512-byte blocks rather than the default. +Note that this overrides the +.Ev BLOCKSIZE +specification from the environment. .It Fl t Only print out statistics for filesystems of the specified types. More than one type may be specified in a comma separated list. |