summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/du.x19
1 files changed, 19 insertions, 0 deletions
diff --git a/man/du.x b/man/du.x
index b44239eb6..8eeedaef7 100644
--- a/man/du.x
+++ b/man/du.x
@@ -2,3 +2,22 @@
du \- estimate file space usage
[DESCRIPTION]
.\" Add any additional description here
+[PATTERNS]
+PATTERN is a shell pattern (not a regular expression). The pattern
+.BR ?
+matches any one character, whereas
+.BR *
+matches any string (composed of zero, one or multiple characters). For
+example,
+.BR *.o
+will match any files whose names end in
+.BR .o .
+Therefore, the command
+.IP
+.B du --exclude='*.o'
+.PP
+will skip all files and subdirectories ending in
+.BR .o
+(including the file
+.BR .o
+itself).