summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjoel <joel@FreeBSD.org>2012-11-04 09:08:17 +0000
committerjoel <joel@FreeBSD.org>2012-11-04 09:08:17 +0000
commit3542e5838ccc1aeb7c2e6fc60f1def744b92702c (patch)
tree7642d266dc13cdb46e6a4a32f62e63e010fa4df4 /usr.bin
parent0f469b3490f2b82e39937de28584f5e04b7ab8a2 (diff)
downloadFreeBSD-src-3542e5838ccc1aeb7c2e6fc60f1def744b92702c.zip
FreeBSD-src-3542e5838ccc1aeb7c2e6fc60f1def744b92702c.tar.gz
Add a few basic examples.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/du/du.120
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.bin/du/du.1 b/usr.bin/du/du.1
index d946f47..aab2f2d 100644
--- a/usr.bin/du/du.1
+++ b/usr.bin/du/du.1
@@ -28,7 +28,7 @@
.\" @(#)du.1 8.2 (Berkeley) 4/1/94
.\" $FreeBSD$
.\"
-.Dd July 18, 2012
+.Dd November 4, 2012
.Dt DU 1
.Os
.Sh NAME
@@ -191,6 +191,24 @@ or
options are not specified, the block counts will be displayed in 512-byte
blocks.
.El
+.Sh EXAMPLES
+Show disk usage for all files in the current directory. Output is in
+human-readable form:
+.Pp
+.Dl # du -ah
+.Pp
+Summarize disk usage in the current directory:
+.Pp
+.Dl # du -hs
+.Pp
+Summarize disk usage for a specific directory:
+.Pp
+.Dl # du -hs /home
+.Pp
+Show name and size of all C files in a specific directory. Also display a
+grand total at the end:
+.Pp
+.Dl # du -ch /usr/src/sys/kern/*.c
.Sh SEE ALSO
.Xr df 1 ,
.Xr chflags 2 ,
OpenPOWER on IntegriCloud