summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-01-30 16:05:14 +0000
committerschwarze <schwarze@openbsd.org>2020-01-30 16:05:14 +0000
commit11cb4e50e9aeab65c60201c8fbbecb447aff96b9 (patch)
tree541127f75b631be56cddeb1fb75fb32cd8000d2d
parentProperly determine era 0 or era 1, making it possible to move past (diff)
downloadwireguard-openbsd-11cb4e50e9aeab65c60201c8fbbecb447aff96b9.tar.xz
wireguard-openbsd-11cb4e50e9aeab65c60201c8fbbecb447aff96b9.zip
add a short EXAMPLES section;
wording from jmc@, example command tweaked by me, based on a wordier patch from <David at Goerger dot info> that used an idea from danj@ answering a question from millert@ triggered by a completely different patch from David Goerger; OK jmc@ danj@
-rw-r--r--usr.bin/du/du.19
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/du/du.1 b/usr.bin/du/du.1
index 5df49530d4d..b9dbf989c35 100644
--- a/usr.bin/du/du.1
+++ b/usr.bin/du/du.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: du.1,v 1.35 2019/09/02 21:18:41 deraadt Exp $
+.\" $OpenBSD: du.1,v 1.36 2020/01/30 16:05:14 schwarze Exp $
.\" $NetBSD: du.1,v 1.6 1996/10/18 07:20:31 thorpej Exp $
.\"
.\" Copyright (c) 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)du.1 8.2 (Berkeley) 4/1/94
.\"
-.Dd $Mdocdate: September 2 2019 $
+.Dd $Mdocdate: January 30 2020 $
.Dt DU 1
.Os
.Sh NAME
@@ -147,6 +147,11 @@ option is specified.
.El
.Sh EXIT STATUS
.Ex -std du
+.Sh EXAMPLES
+Display a summary of files and folders in the current directory,
+sorted by size:
+.Pp
+.Dl du -sh * .??* | sort -h
.Sh SEE ALSO
.Xr df 1 ,
.Xr fts_open 3 ,