diff options
Diffstat (limited to 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index cc3c78433..7a6662d1e 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -23,6 +23,43 @@ | |||
23 | * 4) Fixed busybox bug #1284 involving long overflow with human_readable. | 23 | * 4) Fixed busybox bug #1284 involving long overflow with human_readable. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | //usage:#define du_trivial_usage | ||
27 | //usage: "[-aHLdclsx" IF_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..." | ||
28 | //usage:#define du_full_usage "\n\n" | ||
29 | //usage: "Summarize disk space used for each FILE and/or directory.\n" | ||
30 | //usage: "Disk space is printed in units of " | ||
31 | //usage: IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") | ||
32 | //usage: IF_NOT_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") | ||
33 | //usage: " bytes.\n" | ||
34 | //usage: "\nOptions:" | ||
35 | //usage: "\n -a Show file sizes too" | ||
36 | //usage: "\n -L Follow all symlinks" | ||
37 | //usage: "\n -H Follow symlinks on command line" | ||
38 | //usage: "\n -d N Limit output to directories (and files with -a) of depth < N" | ||
39 | //usage: "\n -c Show grand total" | ||
40 | //usage: "\n -l Count sizes many times if hard linked" | ||
41 | //usage: "\n -s Display only a total for each argument" | ||
42 | //usage: "\n -x Skip directories on different filesystems" | ||
43 | //usage: IF_FEATURE_HUMAN_READABLE( | ||
44 | //usage: "\n -h Sizes in human readable format (e.g., 1K 243M 2G )" | ||
45 | //usage: "\n -m Sizes in megabytes" | ||
46 | //usage: ) | ||
47 | //usage: "\n -k Sizes in kilobytes" | ||
48 | //usage: IF_FEATURE_DU_DEFAULT_BLOCKSIZE_1K(" (default)") | ||
49 | //usage: | ||
50 | //usage:#define du_example_usage | ||
51 | //usage: "$ du\n" | ||
52 | //usage: "16 ./CVS\n" | ||
53 | //usage: "12 ./kernel-patches/CVS\n" | ||
54 | //usage: "80 ./kernel-patches\n" | ||
55 | //usage: "12 ./tests/CVS\n" | ||
56 | //usage: "36 ./tests\n" | ||
57 | //usage: "12 ./scripts/CVS\n" | ||
58 | //usage: "16 ./scripts\n" | ||
59 | //usage: "12 ./docs/CVS\n" | ||
60 | //usage: "104 ./docs\n" | ||
61 | //usage: "2417 .\n" | ||
62 | |||
26 | #include "libbb.h" | 63 | #include "libbb.h" |
27 | 64 | ||
28 | enum { | 65 | enum { |