summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2020-01-30 16:05:15 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2020-01-30 16:05:15 +0000
commit73da4779cc6e22d454d7dc956f84fbf59469014d (patch)
treeb3c00c474e5784e731e1b7ed4c698d312339a7a7
parentf566d8227c7d1ba3d9a23391d6e40c508c738555 (diff)
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 ,