summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJon Ringuette <jonr@scharp.org>2010-05-18 08:26:11 +0200
committerJim Meyering <meyering@redhat.com>2010-05-19 07:28:16 +0200
commit2b8ecfa6f14db48fbc204b2fc4993de077289c2d (patch)
tree8a4b21f3e6de2d934934f20848e83d86387518ff /doc
parent1be4f180f5395b9ef89ab9166e33ba9a54cfba8b (diff)
downloadcoreutils-2b8ecfa6f14db48fbc204b2fc4993de077289c2d.tar.xz
du: recognize -d N as equivalent to --max-depth=N
* NEWS (New features): Mention it. * src/du.c (DEBUG_OPT): Remove. Use long-named ---debug instead. Commented out. (MAX_DEPTH_OPTION): Remove. Use 'd' instead. (main): Insert literal "d:"; remove DEBUG_OPT. * doc/coreutils.texi (du invocation): Add -d to indices. * tests/du/max-depth: Exercise -d, too.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 77434e972..115e5fb49 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -10427,7 +10427,9 @@ This option is equivalent to @option{--block-size=1M}.
For each symbolic links encountered by @command{du},
consider the disk space used by the symbolic link.
+@item -d @var{depth}
@item --max-depth=@var{depth}
+@opindex -d @var{depth}
@opindex --max-depth=@var{depth}
@cindex limiting output of @command{du}
Show the total for each directory (and file if --all) that is at