876d253ab5b8f46f2584985f42b092177955dd62
[oweals/busybox.git] / applets / usage.c
1 #include "busybox.h"
2
3 #if defined BB_AR
4 const char ar_usage[] =
5         "ar -[ovR]{ptx} archive filenames \n"
6 #ifndef BB_FEATURE_TRIVIAL_HELP
7         "\nExtract or list files from an ar archive.\n\n"
8         "Options:\n"
9         "\t-o\t\tpreserve original dates\n"
10         "\t-p\t\textract to stdout\n"
11         "\t-t\t\tlist\n"
12         "\t-x\t\textract\n"
13         "\t-v\t\tverbosely list files processed\n"
14         "\t-R\t\trecursive action\n"
15 #endif
16         ;
17 #endif
18
19 #if defined BB_BASENAME
20 const char basename_usage[] =
21         "basename FILE [SUFFIX]\n"
22 #ifndef BB_FEATURE_TRIVIAL_HELP
23         "\nStrips directory path and suffixes from FILE.\n"
24         "If specified, also removes any trailing SUFFIX.\n"
25 #endif
26         ;
27 #endif
28
29 #if defined BB_CAT
30 const char cat_usage[] =
31         "cat [FILE]...\n"
32 #ifndef BB_FEATURE_TRIVIAL_HELP
33         "\nConcatenates FILE(s) and prints them to stdout.\n"
34 #endif
35         ;
36 #endif
37
38 #if defined BB_CHMOD_CHOWN_CHGRP
39 const char chgrp_usage[] =
40         "chgrp [OPTION]... GROUP FILE...\n"
41 #ifndef BB_FEATURE_TRIVIAL_HELP
42         "\nChange the group membership of each FILE to GROUP.\n"
43         "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
44 #endif
45         ;
46 #endif
47
48 #if defined BB_CHMOD_CHOWN_CHGRP
49 const char chmod_usage[] =
50         "chmod [-R] MODE[,MODE]... FILE...\n"
51 #ifndef BB_FEATURE_TRIVIAL_HELP
52         "\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n"
53         "one or more of the letters rwxst.\n\n"
54         "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
55 #endif
56         ;
57 #endif
58
59 #if defined BB_CHMOD_CHOWN_CHGRP
60 const char chown_usage[] =
61         "chown [OPTION]...  OWNER[<.|:>[GROUP] FILE...\n"
62 #ifndef BB_FEATURE_TRIVIAL_HELP
63         "\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n"
64         "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
65 #endif
66         ;
67 #endif
68
69 #if defined BB_CHROOT
70 const char chroot_usage[] =
71         "chroot NEWROOT [COMMAND...]\n"
72 #ifndef BB_FEATURE_TRIVIAL_HELP
73         "\nRun COMMAND with root directory set to NEWROOT.\n"
74 #endif
75         ;
76 #endif
77
78 #if defined BB_CHVT
79 const char chvt_usage[] =
80         "chvt N\n"
81 #ifndef BB_FEATURE_TRIVIAL_HELP
82         "\nChanges the foreground virtual terminal to /dev/ttyN\n"
83 #endif
84         ;
85 #endif
86
87 #if defined BB_CLEAR
88 const char clear_usage[] =
89         "clear\n"
90 #ifndef BB_FEATURE_TRIVIAL_HELP
91         "\nClear screen.\n"
92 #endif
93         ;
94 #endif
95
96 #if defined BB_CMP
97 const char cmp_usage[] =
98         "cmp FILE1 [FILE2]\n"
99 #ifndef BB_FEATURE_TRIVIAL_HELP
100         "\nCompare files.\n"
101 #endif
102         ;
103 #endif
104
105 #if defined BB_CP_MV
106 const char cp_usage[] =
107         "cp [OPTION]... SOURCE DEST\n"
108         "   or: cp [OPTION]... SOURCE... DIRECTORY\n"
109 #ifndef BB_FEATURE_TRIVIAL_HELP
110         "\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
111         "\n"
112         "\t-a\tSame as -dpR\n"
113         "\t-d\tPreserves links\n"
114         "\t-p\tPreserves file attributes if possible\n"
115         "\t-f\tforce (implied; ignored) - always set\n"
116         "\t-R\tCopies directories recursively\n"
117 #endif
118         ;
119 #endif
120
121 #if defined BB_CUT
122 const char cut_usage[] =
123         "cut [OPTION]... [FILE]...\n"
124 #ifndef BB_FEATURE_TRIVIAL_HELP
125         "\nPrints selected fields from each input FILE to standard output.\n\n"
126         "Options:\n"
127         "\t-b LIST\tOutput only bytes from LIST\n"
128         "\t-c LIST\tOutput only characters from LIST\n"
129         "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n"
130         "\t-s\tOutput only the lines containing delimiter\n"
131         "\t-f N\tPrint only these fields\n"
132         "\t-n\tIgnored\n"
133 #endif
134         ;
135 #endif
136
137 #if defined BB_DATE
138 const char date_usage[] =
139         "date [OPTION]... [+FORMAT]\n"
140         "  or:  date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n"
141 #ifndef BB_FEATURE_TRIVIAL_HELP
142         "\nDisplays the current time in the given FORMAT, or sets the system date.\n"
143         "\nOptions:\n\t-R\t\tOutputs RFC-822 compliant date string\n"
144         "\t-d STRING\tdisplay time described by STRING, not `now'\n"
145         "\t-s\t\tSets time described by STRING\n"
146         "\t-u\t\tPrints or sets Coordinated Universal Time\n"
147 #endif
148         ;
149 #endif
150
151 #if defined BB_DC
152 const char dc_usage[] =
153         "dc expression ...\n"
154 #ifndef BB_FEATURE_TRIVIAL_HELP
155         "\nThis is a Tiny RPN calculator that understands the\n"
156         "following operations: +, -, /, *, and, or, not, eor.\n"
157         "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n"
158 #endif
159         ;
160 #endif
161
162 #if defined BB_DD
163 const char dd_usage[] =
164         "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|sync]\n"
165 #ifndef BB_FEATURE_TRIVIAL_HELP
166         "\nCopy a file, converting and formatting according to options\n\n"
167         "\tif=FILE\tread from FILE instead of stdin\n"
168         "\tof=FILE\twrite to FILE instead of stdout\n"
169         "\tbs=N\tread and write N bytes at a time\n"
170         "\tcount=N\tcopy only N input blocks\n"
171         "\tskip=N\tskip N input blocks\n"
172         "\tseek=N\tskip N output blocks\n"
173         "\tconv=notrunc\t dont truncate of at end of write\n"
174         "\tconv=sync\t pad the last block with zeros until blocksize\n"
175         "\n"
176         "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"
177 #endif
178         ;
179 #endif
180
181 #if defined BB_DEALLOCVT
182 const char deallocvt_usage[] =
183         "deallocvt N\n"
184 #ifndef BB_FEATURE_TRIVIAL_HELP
185          "\nDeallocate unused virtual terminal /dev/ttyN\n"
186 #endif
187          ;
188 #endif
189
190 #if defined BB_DF
191 const char df_usage[] =
192         "df [filesystem ...]\n"
193 #ifndef BB_FEATURE_TRIVIAL_HELP
194         "\nPrint the filesystem space used and space available.\n"
195 #endif
196         ;
197 #endif
198
199 #if defined BB_DIRNAME
200 const char dirname_usage[] =
201         "dirname [FILENAME ...]\n"
202 #ifndef BB_FEATURE_TRIVIAL_HELP
203         "\nStrips non-directory suffix from FILENAME\n"
204 #endif
205         ;
206 #endif
207
208 #if defined BB_DMESG
209 const char dmesg_usage[] =
210         "dmesg [-c] [-n LEVEL] [-s SIZE]\n"
211 #ifndef BB_FEATURE_TRIVIAL_HELP
212         "\nPrints or controls the kernel ring buffer\n\n"
213         "Options:\n"
214         "\t-c\t\tClears the ring buffer's contents after printing\n"
215         "\t-n LEVEL\tSets console logging level\n"
216         "\t-s SIZE\t\tUse a buffer of size SIZE\n"
217 #endif
218         ;
219 #endif
220
221 #if defined BB_DOS2UNIX
222 const char dos2unix_usage[] =
223         "dos2unix < dosfile > unixfile\n"
224 #ifndef BB_FEATURE_TRIVIAL_HELP
225         "\nConverts a text file from dos format to unix format.\n"
226 #endif
227         ;
228 #endif
229
230 #if defined BB_DU
231 const char du_usage[] =
232         "du [OPTION]... [FILE]...\n"
233 #ifndef BB_FEATURE_TRIVIAL_HELP
234         "\nSummarizes disk space used for each FILE and/or directory.\n"
235         "Disk space is printed in units of 1024 bytes.\n\n"
236         "Options:\n"
237         "\t-l\tcount sizes many times if hard linked\n"
238         "\t-s\tdisplay only a total for each argument\n"
239 #endif
240         ;
241 #endif
242
243 #if defined BB_DUMPKMAP
244 const char dumpkmap_usage[] =
245         "dumpkmap > keymap\n"
246 #ifndef BB_FEATURE_TRIVIAL_HELP
247         "\nPrints out a binary keyboard translation table to standard input.\n"
248 #endif
249         ;
250 #endif
251
252 #if defined BB_DUTMP
253 const char dutmp_usage[] =
254         "dutmp [FILE]\n"
255 #ifndef BB_FEATURE_TRIVIAL_HELP
256         "\nDump utmp file format (pipe delimited) from FILE\n"
257         "or stdin to stdout.  (i.e. 'dutmp /var/run/utmp')\n"
258 #endif
259         ;
260 #endif
261
262 #if defined BB_ECHO
263 const char echo_usage[] =
264         "echo [-neE] [ARG ...]\n"
265 #ifndef BB_FEATURE_TRIVIAL_HELP
266         "\nPrints the specified ARGs to stdout\n\n"
267         "Options:\n"
268         "\t-n\tsuppress trailing newline\n"
269         "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
270         "\t-E\tdisable interpretation of backslash-escaped characters\n"
271 #endif
272         ;
273 #endif
274
275 #if defined BB_EXPR
276 const char expr_usage[] =
277         "expr EXPRESSION\n"
278 #ifndef BB_FEATURE_TRIVIAL_HELP
279         "\nPrints the value of EXPRESSION to standard output.\n\n"
280        "EXPRESSION may be:\n"
281        "ARG1 |  ARG2    ARG1 if it is neither null nor 0, otherwise ARG2\n"
282        "ARG1 &  ARG2    ARG1 if neither argument is null or 0, otherwise 0\n"
283        "ARG1 <  ARG2    ARG1 is less than ARG2\n"
284        "ARG1 <= ARG2    ARG1 is less than or equal to ARG2\n"
285        "ARG1 =  ARG2    ARG1 is equal to ARG2\n"
286        "ARG1 != ARG2    ARG1 is unequal to ARG2\n"
287        "ARG1 >= ARG2    ARG1 is greater than or equal to ARG2\n"
288        "ARG1 >  ARG2    ARG1 is greater than ARG2\n"
289        "ARG1 +  ARG2    arithmetic sum of ARG1 and ARG2\n"
290        "ARG1 -  ARG2    arithmetic difference of ARG1 and ARG2\n"
291        "ARG1 *  ARG2    arithmetic product of ARG1 and ARG2\n"
292        "ARG1 /  ARG2    arithmetic quotient of ARG1 divided by ARG2\n"
293        "ARG1 %  ARG2    arithmetic remainder of ARG1 divided by ARG2\n"
294        "STRING : REGEXP             anchored pattern match of REGEXP in STRING\n"
295        "match STRING REGEXP         same as STRING : REGEXP\n"
296        "substr STRING POS LENGTH    substring of STRING, POS counted from 1\n"
297        "index STRING CHARS          index in STRING where any CHARS is found, or 0\n"
298        "length STRING               length of STRING\n"
299        "quote TOKEN                 interpret TOKEN as a string, even if it is a \n"
300        "                                keyword like `match' or an operator like `/'\n"
301        "( EXPRESSION )              value of EXPRESSION\n\n"
302        "Beware that many operators need to be escaped or quoted for shells.\n"
303        "Comparisons are arithmetic if both ARGs are numbers, else\n"
304        "lexicographical.  Pattern matches return the string matched between \n"
305        "\\( and \\) or null; if \\( and \\) are not used, they return the number \n"
306        "of characters matched or 0.\n"
307
308 #endif
309         ;
310 #endif
311
312
313 #if defined BB_TRUE_FALSE
314 const char false_usage[] =
315         "false\n"
316 #ifndef BB_FEATURE_TRIVIAL_HELP
317         "\nReturn an exit code of FALSE (1).\n"
318 #endif
319         ;
320 #endif
321
322 #if defined BB_FDFLUSH
323 const char fdflush_usage[] =
324         "fdflush DEVICE\n"
325 #ifndef BB_FEATURE_TRIVIAL_HELP
326         "\nForces floppy disk drive to detect disk change\n"
327 #endif
328         ;
329 #endif
330
331 #if defined BB_FIND
332 const char find_usage[] =
333         "find [PATH...] [EXPRESSION]\n"
334 #ifndef BB_FEATURE_TRIVIAL_HELP
335         "\nSearch for files in a directory hierarchy.  The default PATH is\n"
336         "the current directory; default EXPRESSION is '-print'\n\n"
337         "\nEXPRESSION may consist of:\n"
338         "\t-follow\t\tDereference symbolic links.\n"
339         "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
340         "\t-print\t\tprint the full file name followed by a newline to stdout.\n"
341 #endif
342         ;
343 #endif
344
345 #if defined BB_FREE
346 const char free_usage[] =
347         "free\n"
348 #ifndef BB_FEATURE_TRIVIAL_HELP
349         "\nDisplays the amount of free and used system memory\n"
350 #endif
351         ;
352 #endif
353
354 #if defined BB_FREERAMDISK
355 const char freeramdisk_usage[] =
356         "freeramdisk DEVICE\n"
357 #ifndef BB_FEATURE_TRIVIAL_HELP
358         "\nFrees all memory used by the specified ramdisk.\n"
359 #endif
360         ;
361 #endif
362
363 #if defined BB_FSCK_MINIX
364 const char fsck_minix_usage[] =
365         "Usage: fsck.minix [-larvsmf] /dev/name\n"
366 #ifndef BB_FEATURE_TRIVIAL_HELP
367         "\nPerforms a consistency check for MINIX filesystems.\n\n"
368         "Options:\n"
369         "\t-l\tLists all filenames\n"
370         "\t-r\tPerform interactive repairs\n"
371         "\t-a\tPerform automatic repairs\n"
372         "\t-v\tverbose\n"
373         "\t-s\tOutputs super-block information\n"
374         "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
375         "\t-f\tForce file system check.\n\n"
376 #endif
377         ;
378 #endif
379
380 #if defined BB_GETOPT
381 const char getopt_usage[] =
382 "getopt [OPTIONS]...\n"
383 #ifndef BB_FEATURE_TRIVIAL_HELP
384 "Parse command options\n"
385 "  -a, --alternative            Allow long options starting with single -\n"
386 "  -l, --longoptions=longopts   Long options to be recognized\n"
387 "  -n, --name=progname          The name under which errors are reported\n"
388 "  -o, --options=optstring      Short options to be recognized\n"
389 "  -q, --quiet                  Disable error reporting by getopt(3)\n"
390 "  -Q, --quiet-output           No normal output\n"
391 "  -s, --shell=shell            Set shell quoting conventions\n"
392 "  -T, --test                   Test for getopt(1) version\n"
393 "  -u, --unqote                 Do not quote the output\n"
394 #endif
395 ;
396 #endif
397
398 #if defined BB_GREP
399 const char grep_usage[] =
400         "grep [-ihHnqvs] pattern [files...]\n"
401 #ifndef BB_FEATURE_TRIVIAL_HELP
402         "\nSearch for PATTERN in each FILE or standard input.\n\n"
403         "Options:\n"
404         "\t-H\tprefix output lines with filename where match was found\n"
405         "\t-h\tsuppress the prefixing filename on output\n"
406         "\t-i\tignore case distinctions\n"
407         "\t-n\tprint line number with output lines\n"
408         "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
409         "\t-v\tselect non-matching lines\n"
410         "\t-s\tsuppress file open/read error messages\n\n"
411 #endif
412         ;
413 #endif
414
415 #if defined BB_GUNZIP
416 const char gunzip_usage[] =
417         "gunzip [OPTION]... FILE\n"
418 #ifndef BB_FEATURE_TRIVIAL_HELP
419         "\nUncompress FILE (or standard input if FILE is '-').\n\n"
420         "Options:\n"
421         "\t-c\tWrite output to standard output\n"
422         "\t-t\tTest compressed file integrity\n"
423 #endif
424         ;
425 #endif
426
427 #if defined BB_GZIP
428 const char gzip_usage[] =
429         "gzip [OPTION]... FILE\n"
430 #ifndef BB_FEATURE_TRIVIAL_HELP
431         "\nCompress FILE with maximum compression.\n"
432         "When FILE is '-', reads standard input.  Implies -c.\n\n"
433         "Options:\n"
434         "\t-c\tWrite output to standard output instead of FILE.gz\n"
435         "\t-d\tdecompress\n"
436 #endif
437         ;
438 #endif
439
440 #if defined BB_HALT
441 const char halt_usage[] =
442         "halt\n"
443 #ifndef BB_FEATURE_TRIVIAL_HELP
444         "\nHalt the system.\n"
445 #endif
446         ;
447 #endif
448
449 #if defined BB_HEAD
450 const char head_usage[] =
451         "head [OPTION] [FILE]...\n"
452 #ifndef BB_FEATURE_TRIVIAL_HELP
453         "\nPrint first 10 lines of each FILE to standard output.\n"
454         "With more than one FILE, precede each with a header giving the\n"
455         "file name. With no FILE, or when FILE is -, read standard input.\n\n"
456
457         "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"
458 #endif
459         ;
460 #endif
461
462 #if defined BB_HOSTID
463 const char hostid_usage[] =
464         "hostid\n"
465 #ifndef BB_FEATURE_TRIVIAL_HELP
466         "\nPrint out a unique 32-bit identifier for the machine.\n"
467 #endif
468         ;
469 #endif
470
471 #if defined BB_HOSTNAME
472 const char hostname_usage[] =
473         "hostname [OPTION] {hostname | -F file}\n"
474 #ifndef BB_FEATURE_TRIVIAL_HELP
475         "\nGet or set the hostname or DNS domain name. If a hostname is given\n"
476         "(or a file with the -F parameter), the host name will be set.\n\n"
477         "Options:\n"
478         "\t-s\t\tShort\n"
479
480         "\t-i\t\tAddresses for the hostname\n"
481         "\t-d\t\tDNS domain name\n"
482         "\t-F, --file FILE\tUse the contents of FILE to specify the hostname\n"
483 #endif
484         ;
485 #endif
486
487 #if defined BB_ID
488 const char id_usage[] =
489         "id [OPTIONS]... [USERNAME]\n"
490 #ifndef BB_FEATURE_TRIVIAL_HELP
491         "\nPrint information for USERNAME or the current user\n\n"
492         "Options:\n"
493         "\t-g\tprints only the group ID\n"
494         "\t-u\tprints only the user ID\n"
495         "\t-r\tprints the real user ID instead of the effective ID (with -ug)\n\n"
496 #endif
497         ;
498 #endif
499
500 #if defined BB_INSMOD
501 const char insmod_usage[] =
502         "insmod [OPTION]... MODULE [symbol=value]...\n"
503 #ifndef BB_FEATURE_TRIVIAL_HELP
504         "\nLoads the specified kernel modules into the kernel.\n\n"
505         "Options:\n"
506         "\t-f\tForce module to load into the wrong kernel version.\n"
507         "\t-k\tMake module autoclean-able.\n"
508         "\t-v\tverbose output\n" "\t-x\tdo not export externs\n"
509 #endif
510         ;
511 #endif
512
513 #if defined BB_KILL
514 const char kill_usage[] =
515         "kill [-signal] process-id [process-id ...]\n"
516 #ifndef BB_FEATURE_TRIVIAL_HELP
517         "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
518         "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
519 #endif
520         ;
521 #endif
522
523 #if defined BB_KILLALL
524 const char killall_usage[] =
525         "killall [-signal] process-name [process-name ...]\n"
526 #ifndef BB_FEATURE_TRIVIAL_HELP
527         "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
528         "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
529 #endif
530         ;
531 #endif
532
533 #if defined BB_LENGTH
534 const char length_usage[] =
535         "length STRING\n"
536 #ifndef BB_FEATURE_TRIVIAL_HELP
537         "\nPrints out the length of the specified STRING.\n"
538 #endif
539         ;
540 #endif
541
542 #if defined BB_LN
543 const char ln_usage[] =
544         "ln [OPTION] TARGET... LINK_NAME|DIRECTORY\n"
545 #ifndef BB_FEATURE_TRIVIAL_HELP
546         "\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
547         "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
548         "Options:\n"
549         "\t-s\tmake symbolic links instead of hard links\n"
550
551         "\t-f\tremove existing destination files\n"
552         "\t-n\tno dereference symlinks - treat like normal file\n"
553 #endif
554         ;
555 #endif
556
557 #if defined BB_LOADACM
558 const char loadacm_usage[] =
559         "loadacm < mapfile\n"
560 #ifndef BB_FEATURE_TRIVIAL_HELP
561         "\nLoads an acm from standard input.\n"
562 #endif
563         ;
564 #endif
565
566 #if defined BB_LOADFONT
567 const char loadfont_usage[] =
568         "loadfont < font\n"
569 #ifndef BB_FEATURE_TRIVIAL_HELP
570         "Loads a console font from standard input.\n"
571 #endif
572         ;
573 #endif
574
575 #if defined BB_LOADKMAP
576 const char loadkmap_usage[] =
577         "loadkmap < keymap\n"
578 #ifndef BB_FEATURE_TRIVIAL_HELP
579         "\nLoads a binary keyboard translation table from standard input.\n"
580 #endif
581         ;
582 #endif
583
584 #if defined BB_LOGGER
585 const char logger_usage[] =
586         "logger [OPTION]... [MESSAGE]\n"
587 #ifndef BB_FEATURE_TRIVIAL_HELP
588         "\nWrite MESSAGE to the system log.  If MESSAGE is '-', log stdin.\n\n"
589         "Options:\n"
590         "\t-s\tLog to stderr as well as the system log.\n"
591         "\t-t\tLog using the specified tag (defaults to user name).\n"
592
593         "\t-p\tEnter the message with the specified priority.\n"
594         "\t\tThis may be numerical or a ``facility.level'' pair.\n"
595 #endif
596         ;
597 #endif
598
599 #if defined BB_LOGNAME
600 const char logname_usage[] =
601         "logname\n"
602 #ifndef BB_FEATURE_TRIVIAL_HELP
603         "\nPrint the name of the current user.\n"
604 #endif
605         ;
606 #endif
607
608 #if defined BB_LS
609 const char ls_usage[] =
610         "ls [-1Aa"
611 #ifdef BB_FEATURE_LS_TIMESTAMPS
612         "c"
613 #endif
614         "Cd"
615 #ifdef BB_FEATURE_LS_TIMESTAMPS
616         "e"
617 #endif
618 #ifdef BB_FEATURE_LS_FILETYPES
619         "F"
620 #endif
621         "iln"
622 #ifdef BB_FEATURE_LS_FILETYPES
623         "p"
624 #endif
625 #ifdef BB_FEATURE_LS_FOLLOWLINKS
626     "L"
627 #endif
628 #ifdef BB_FEATURE_LS_RECURSIVE
629         "R"
630 #endif
631 #ifdef BB_FEATURE_LS_SORTFILES
632         "rS"
633 #endif
634         "s"
635 #ifdef BB_FEATURE_AUTOWIDTH
636         "T"
637 #endif
638 #ifdef BB_FEATURE_LS_TIMESTAMPS
639         "tu"
640 #endif
641 #ifdef BB_FEATURE_LS_SORTFILES
642         "v"
643 #endif
644 #ifdef BB_FEATURE_AUTOWIDTH
645         "w"
646 #endif
647         "x"
648 #ifdef BB_FEATURE_LS_SORTFILES
649         "X"
650 #endif
651         "] [filenames...]\n"
652 #ifndef BB_FEATURE_TRIVIAL_HELP
653         "\nList directory contents\n\n"
654         "Options:\n"
655         "\t-1\tlist files in a single column\n"
656         "\t-A\tdo not list implied . and ..\n"
657         "\t-a\tdo not hide entries starting with .\n"
658         "\t-C\tlist entries by columns\n"
659 #ifdef BB_FEATURE_LS_TIMESTAMPS
660         "\t-c\twith -l: show ctime (the time of last\n"
661         "\t\tmodification of file status information)\n"
662 #endif
663         "\t-d\tlist directory entries instead of contents\n"
664 #ifdef BB_FEATURE_LS_TIMESTAMPS
665         "\t-e\tlist both full date and full time\n"
666 #endif
667 #ifdef BB_FEATURE_LS_FILETYPES
668         "\t-F\tappend indicator (one of */=@|) to entries\n"
669 #endif
670         "\t-i\tlist the i-node for each file\n"
671         "\t-l\tuse a long listing format\n"
672         "\t-n\tlist numeric UIDs and GIDs instead of names\n"
673 #ifdef BB_FEATURE_LS_FILETYPES
674         "\t-p\tappend indicator (one of /=@|) to entries\n"
675 #endif
676 #ifdef BB_FEATURE_LS_FOLLOWLINKS
677     "\t-L\tlist entries pointed to by symbolic links\n"
678 #endif
679 #ifdef BB_FEATURE_LS_RECURSIVE
680         "\t-R\tlist subdirectories recursively\n"
681 #endif
682 #ifdef BB_FEATURE_LS_SORTFILES
683         "\t-r\tsort the listing in reverse order\n"
684         "\t-S\tsort the listing by file size\n"
685 #endif
686         "\t-s\tlist the size of each file, in blocks\n"
687 #ifdef BB_FEATURE_AUTOWIDTH
688         "\t-T NUM\tassume Tabstop every NUM columns\n"
689 #endif
690 #ifdef BB_FEATURE_LS_TIMESTAMPS
691         "\t-t\twith -l: show modification time (the time of last\n"
692         "\t\tchange of the file)\n"
693         "\t-u\twith -l: show access time (the time of last\n"
694         "\t\taccess of the file)\n"
695 #endif
696 #ifdef BB_FEATURE_LS_SORTFILES
697         "\t-v\tsort the listing by version\n"
698 #endif
699 #ifdef BB_FEATURE_AUTOWIDTH
700         "\t-w NUM\tassume the terminal is NUM columns wide\n"
701 #endif
702         "\t-x\tlist entries by lines instead of by columns\n"
703 #ifdef BB_FEATURE_LS_SORTFILES
704         "\t-X\tsort the listing by extension\n"
705 #endif
706 #endif /*  BB_FEATURE_TRIVIAL_HELP */
707         ;
708 #endif /* BB_LS */
709
710 #if defined BB_LSMOD
711 const char lsmod_usage[] =
712         "lsmod\n"
713 #ifndef BB_FEATURE_TRIVIAL_HELP
714         "\nList the currently loaded kernel modules.\n"
715 #endif
716         ;
717 #endif
718
719 #if defined BB_MAKEDEVS
720 const char makedevs_usage[] =
721         "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
722 #ifndef BB_FEATURE_TRIVIAL_HELP
723         "\nCreates a range of block or character special files\n\n"
724         "TYPEs include:\n"
725         "\tb:\tMake a block (buffered) device.\n"
726         "\tc or u:\tMake a character (un-buffered) device.\n"
727         "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
728         "FIRST specifies the number appended to NAME to create the first device.\n"
729         "LAST specifies the number of the last item that should be created.\n"
730         "If 's' is the last argument, the base device is created as well.\n\n"
731         "For example:\n"
732         "\tmakedevs /dev/ttyS c 4 66 2 63   ->  ttyS2-ttyS63\n"
733         "\tmakedevs /dev/hda b 3 0 0 8 s    ->  hda,hda1-hda8\n"
734 #endif
735         ;
736 #endif
737
738 #if defined BB_MD5SUM
739 const char md5sum_usage[] =
740         "md5sum [OPTION] [FILE]...\n"
741         "or:    md5sum [OPTION] -c [FILE]\n"
742 #ifndef BB_FEATURE_TRIVIAL_HELP
743         "\nPrint or check MD5 checksums.\n\n"
744         "Options:\n"
745         "With no FILE, or when FILE is -, read standard input.\n\n"
746         "\t-b\tread files in binary mode\n"
747         "\t-c\tcheck MD5 sums against given list\n"
748         "\t-t\tread files in text mode (default)\n"
749         "\t-g\tread a string\n"
750         "\nThe following two options are useful only when verifying checksums:\n"
751         "\t-s,\tdon't output anything, status code shows success\n"
752         "\t-w,\twarn about improperly formated MD5 checksum lines\n"
753 #endif
754         ;
755 #endif
756
757 #if defined BB_MKDIR
758 const char mkdir_usage[] =
759         "mkdir [OPTION] DIRECTORY...\n"
760 #ifndef BB_FEATURE_TRIVIAL_HELP
761         "\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
762         "Options:\n"
763
764         "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
765         "\t-p\tno error if existing, make parent directories as needed\n"
766 #endif
767         ;
768 #endif
769
770 #if defined BB_MKFIFO
771 const char mkfifo_usage[] =
772         "mkfifo [OPTIONS] name\n"
773 #ifndef BB_FEATURE_TRIVIAL_HELP
774         "\nCreates a named pipe (identical to 'mknod name p')\n\n"
775         "Options:\n"
776         "\t-m\tcreate the pipe using the specified mode (default a=rw)\n"
777 #endif
778         ;
779 #endif
780
781 #if defined BB_MKFS_MINIX
782 const char mkfs_minix_usage[] =
783         "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"
784 #ifndef BB_FEATURE_TRIVIAL_HELP
785         "\nMake a MINIX filesystem.\n\n"
786         "Options:\n"
787         "\t-c\t\tCheck the device for bad blocks\n"
788         "\t-n [14|30]\tSpecify the maximum length of filenames\n"
789         "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
790         "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
791         "\t-v\t\tMake a Minix version 2 filesystem\n\n"
792 #endif
793         ;
794 #endif
795
796 #if defined BB_MKNOD
797 const char mknod_usage[] =
798         "mknod [OPTIONS] NAME TYPE MAJOR MINOR\n"
799 #ifndef BB_FEATURE_TRIVIAL_HELP
800         "\nCreate a special file (block, character, or pipe).\n\n"
801         "Options:\n"
802         "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
803         "TYPEs include:\n"
804         "\tb:\tMake a block (buffered) device.\n"
805         "\tc or u:\tMake a character (un-buffered) device.\n"
806         "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n"
807 #endif
808         ;
809 #endif
810
811 #if defined BB_MKSWAP
812 const char mkswap_usage[] =
813         "mkswap [-c] [-v0|-v1] device [block-count]\n"
814 #ifndef BB_FEATURE_TRIVIAL_HELP
815         "\nPrepare a disk partition to be used as a swap partition.\n\n"
816         "Options:\n" "\t-c\t\tCheck for read-ability.\n"
817         "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
818         "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
819
820         "\tblock-count\tNumber of block to use (default is entire partition).\n"
821 #endif
822         ;
823 #endif
824
825 #if defined BB_MKTEMP
826 const char mktemp_usage[] =
827         "mktemp [-q] TEMPLATE\n"
828 #ifndef BB_FEATURE_TRIVIAL_HELP
829         "\nCreates a temporary file with its name based on TEMPLATE.\n"
830         "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX).\n"
831 #endif
832         ;
833 #endif
834
835 #if defined BB_MORE
836 const char more_usage[] =
837         "more [FILE ...]\n"
838 #ifndef BB_FEATURE_TRIVIAL_HELP
839         "\nMore is a filter for viewing FILE one screenful at a time.\n"
840 #endif
841         ;
842 #endif
843
844 #if defined BB_MOUNT
845 const char mount_usage[] = 
846         "mount [flags] device directory [-o options,more-options]\n"
847 #ifndef BB_FEATURE_TRIVIAL_HELP
848         "\nMount a filesystem\n\n"
849         "Flags:\n" 
850         "\t-a:\t\tMount all filesystems in fstab.\n"
851 #ifdef BB_MTAB
852         "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
853         "\t-n:\t\tDon't write a mount table entry.\n"
854 #endif
855         "\t-o option:\tOne of many filesystem options, listed below.\n"
856         "\t-r:\t\tMount the filesystem read-only.\n"
857         "\t-t fs-type:\tSpecify the filesystem type.\n"
858         "\t-w:\t\tMount for reading and writing (default).\n"
859         "\n"
860         "Options for use with the \"-o\" flag:\n"
861         "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
862         "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
863         "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
864         "\texec/noexec:\tAllow use of executable files / disallow them.\n"
865 #if defined BB_FEATURE_MOUNT_LOOP
866         "\tloop:\t\tMounts a file via loop device.\n"
867 #endif
868         "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
869         "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
870         "\tro/rw:\t\tMount for read-only / read-write.\n"
871         "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
872         "You'll have to see the written documentation for those.\n"
873 #endif
874         ;
875 #endif
876
877 #if defined BB_MT
878 const char mt_usage[] =
879         "mt [-f device] opcode value\n"
880 #ifndef BB_FEATURE_TRIVIAL_HELP
881         "\nControl magnetic tape drive operation\n"
882         "\nAvailable Opcodes:\n\n"
883         "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n"
884         "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n"
885         "ras3 reset retension rew rewoffline seek setblk setdensity\n"
886         "setpart tell unload unlock weof wset\n"
887 #endif
888         ;
889 #endif
890
891 #if defined BB_CP_MV
892 const char mv_usage[] =
893         "mv SOURCE DEST\n"
894         "   or: mv SOURCE... DIRECTORY\n"
895 #ifndef BB_FEATURE_TRIVIAL_HELP
896         "\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n"
897 #endif
898         ;
899 #endif
900
901 #if defined BB_NC
902 const char nc_usage[] =
903         "nc [IP] [port]\n" 
904 #ifndef BB_FEATURE_TRIVIAL_HELP
905         "\nNetcat opens a pipe to IP:port\n"
906 #endif
907         ;
908 #endif
909
910 #if defined BB_NSLOOKUP
911 const char nslookup_usage[] =
912         "nslookup [HOST]\n"
913 #ifndef BB_FEATURE_TRIVIAL_HELP
914         "\nQueries the nameserver for the IP address of the given HOST\n"
915 #endif
916 ;
917 #endif
918
919 #if defined BB_PING
920 #if defined BB_FEATURE_SIMPLE_PING
921 const char ping_usage[] =
922         "ping host\n"
923 #ifndef BB_FEATURE_TRIVIAL_HELP
924         "\nSend ICMP ECHO_REQUEST packets to network hosts\n"
925 #endif
926         ;
927 #else /* ! defined BB_FEATURE_SIMPLE_PING */
928 const char ping_usage[] =
929         "ping [OPTION]... host\n"
930 #ifndef BB_FEATURE_TRIVIAL_HELP
931         "\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
932         "Options:\n"
933         "\t-c COUNT\tSend only COUNT pings.\n"
934         "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
935         "\t-q\t\tQuiet mode, only displays output at start\n"
936         "\t\t\tand when finished.\n"
937 #endif
938         ;
939 #endif
940 #endif
941
942 #if defined BB_POWEROFF
943 const char poweroff_usage[] =
944         "poweroff\n"
945 #ifndef BB_FEATURE_TRIVIAL_HELP
946         "\nHalt the system and request that the kernel shut off the power.\n"
947 #endif
948         ;
949 #endif
950
951 #if defined BB_PRINTF
952 const char printf_usage[] =
953         "printf FORMAT [ARGUMENT...]\n"
954 #ifndef BB_FEATURE_TRIVIAL_HELP
955         "\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
956         "Where FORMAT controls the output exactly as in C printf.\n"
957 #endif
958         ;
959 #endif
960
961 #if defined BB_PS
962 const char ps_usage[] =
963         "ps\n"
964 #ifndef BB_FEATURE_TRIVIAL_HELP
965         "\nReport process status\n"
966         "\nThis version of ps accepts no options.\n"
967 #endif
968         ;
969 #endif
970
971 #if defined BB_PWD
972 const char pwd_usage[] =
973         "pwd\n"
974 #ifndef BB_FEATURE_TRIVIAL_HELP
975         "\nPrint the full filename of the current working directory.\n"
976 #endif
977         ;
978 #endif
979
980 #if defined BB_RDATE
981 const char rdate_usage[] =
982         "rdate [OPTION] HOST\n"
983 #ifndef BB_FEATURE_TRIVIAL_HELP
984         "\nGet and possibly set the system date and time from a remote HOST.\n"
985         "Options:\n"
986         "\t-s\tSet the system date and time (default).\n"
987         "\t-p\tPrint the date and time.\n"
988 #endif
989         ;
990 #endif
991
992 #if defined BB_READLINK
993 const char readlink_usage[] =
994         "readlink\n"
995 #ifndef BB_FEATURE_TRIVIAL_HELP
996         "\nRead a symbolic link.\n"
997 #endif
998         ;
999 #endif
1000
1001 #if defined BB_REBOOT
1002 const char reboot_usage[] =
1003         "reboot\n"
1004 #ifndef BB_FEATURE_TRIVIAL_HELP
1005         "\nReboot the system.\n"
1006 #endif
1007         ;
1008 #endif
1009         
1010 #if defined BB_RENICE
1011 const char renice_usage[] =
1012         "renice priority pid [pid ...]\n"
1013 #ifndef BB_FEATURE_TRIVIAL_HELP
1014         "\nChanges priority of running processes. Allowed priorities range\n"
1015         "from 20 (the process runs only when nothing else is running) to 0\n"
1016         "(default priority) to -20 (almost nothing else ever gets to run).\n"
1017 #endif
1018         ;
1019 #endif
1020
1021
1022 #if defined BB_RESET
1023 const char reset_usage[] =
1024         "reset\n"
1025 #ifndef BB_FEATURE_TRIVIAL_HELP
1026         "\nResets the screen.\n"
1027 #endif
1028         ;
1029 #endif
1030
1031 #if defined BB_RM
1032 const char rm_usage[] =
1033         "rm [OPTION]... FILE...\n"
1034 #ifndef BB_FEATURE_TRIVIAL_HELP
1035         "\nRemove (unlink) the FILE(s).  You may use '--' to\n"
1036         "indicate that all following arguments are non-options.\n\n"
1037         "Options:\n"
1038         "\t-f\t\tremove existing destinations, never prompt\n"
1039         "\t-r or -R\tremove the contents of directories recursively\n"
1040 #endif
1041         ;
1042 #endif
1043
1044 #if defined BB_RMDIR
1045 const char rmdir_usage[] =
1046         "rmdir [OPTION]... DIRECTORY...\n"
1047 #ifndef BB_FEATURE_TRIVIAL_HELP
1048         "\nRemove the DIRECTORY(ies), if they are empty.\n"
1049 #endif
1050         ;
1051 #endif
1052
1053 #if defined BB_RMMOD
1054 const char rmmod_usage[] =
1055         "rmmod [OPTION]... [MODULE]...\n"
1056 #ifndef BB_FEATURE_TRIVIAL_HELP
1057         "\nUnloads the specified kernel modules from the kernel.\n\n"
1058         "Options:\n" 
1059         "\t-a\tTry to remove all unused kernel modules.\n"
1060 #endif
1061         ;
1062 #endif
1063
1064 #if defined BB_RPMUNPACK
1065 const char rpmunpack_usage[] =
1066         "rpmunpack < package.rpm | gunzip | cpio -idmuv\n"
1067 #ifndef BB_FEATURE_TRIVIAL_HELP
1068         "\nExtracts an rpm archive.\n"
1069 #endif
1070         ;
1071 #endif
1072
1073 #if defined BB_SED
1074 const char sed_usage[] =
1075         "sed [-Vhnef] pattern [files...]\n"
1076 #ifndef BB_FEATURE_TRIVIAL_HELP
1077         "\n"
1078         "-n\t\tsuppress automatic printing of pattern space\n"
1079         "-e script\tadd the script to the commands to be executed\n"
1080         "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
1081         "-h\t\tdisplay this help message\n"
1082         "\n"
1083         "If no -e or -f is given, the first non-option argument is taken as the\n"
1084         "sed script to interpret. All remaining arguments are names of input\n"
1085         "files; if no input files are specified, then the standard input is read.\n"
1086 #endif
1087         ;
1088 #endif
1089
1090 #if defined BB_SETKEYCODES
1091 const char setkeycodes_usage[] =
1092         "setkeycodes SCANCODE KEYCODE ...\n"
1093 #ifndef BB_FEATURE_TRIVIAL_HELP
1094         "\nSet entries into the kernel's scancode-to-keycode map,\n"
1095         "allowing unusual keyboards to generate usable keycodes.\n\n" 
1096         "SCANCODE may be either xx or e0xx (hexadecimal),\n"
1097         "and KEYCODE is given in decimal\n"
1098 #endif
1099         ;
1100 #endif
1101
1102 #if defined BB_SH
1103 const char shell_usage[] =
1104         "sh [FILE]...\n"
1105         "   or: sh -c command [args]...\n"
1106 #ifndef BB_FEATURE_TRIVIAL_HELP
1107         "\nlash: The BusyBox command interpreter (shell).\n\n"
1108 #endif
1109         ;
1110 #endif
1111
1112 #if defined BB_SLEEP
1113 const char sleep_usage[] =
1114         "sleep N\n" 
1115 #ifndef BB_FEATURE_TRIVIAL_HELP
1116         "\nPause for N seconds.\n"
1117 #endif
1118         ;
1119 #endif
1120
1121 #if defined BB_SORT
1122 const char sort_usage[] =
1123         "sort [-n]"
1124 #ifdef BB_FEATURE_SORT_REVERSE
1125         " [-r]"
1126 #endif
1127         " [FILE]...\n"
1128 #ifndef BB_FEATURE_TRIVIAL_HELP
1129         "\nSorts lines of text in the specified files\n"
1130 #endif
1131         ;
1132 #endif
1133
1134 #if defined BB_SWAPONOFF
1135 const char swapoff_usage[] =
1136         "swapoff [OPTION] [device]\n"
1137 #ifndef BB_FEATURE_TRIVIAL_HELP
1138         "\nStop swapping virtual memory pages on the given device.\n\n"
1139         "Options:\n"
1140         "\t-a\tStop swapping on all swap devices\n"
1141 #endif
1142         ;
1143 #endif
1144
1145 #if defined BB_SWAPONOFF
1146 const char swapon_usage[] =
1147         "swapon [OPTION] [device]\n"
1148 #ifndef BB_FEATURE_TRIVIAL_HELP
1149         "\nStart swapping virtual memory pages on the given device.\n\n"
1150         "Options:\n"
1151         "\t-a\tStart swapping on all swap devices\n"
1152 #endif
1153         ;
1154 #endif
1155
1156 #if defined BB_SYNC
1157 const char sync_usage[] =
1158         "sync\n"
1159 #ifndef BB_FEATURE_TRIVIAL_HELP
1160         "\nWrite all buffered filesystem blocks to disk.\n"
1161 #endif
1162         ;
1163 #endif
1164
1165 #if defined BB_SYSLOGD
1166 const char syslogd_usage[] =
1167         "syslogd [OPTION]...\n"
1168 #ifndef BB_FEATURE_TRIVIAL_HELP
1169         "\nLinux system and kernel (provides klogd) logging utility.\n"
1170         "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
1171         "Options:\n"
1172         "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
1173         "\t-n\t\tRun as a foreground process\n"
1174 #ifdef BB_FEATURE_KLOGD
1175         "\t-K\t\tDo not start up the klogd process\n"
1176 #endif
1177         "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
1178 #ifdef BB_FEATURE_REMOTE_LOG
1179         "\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
1180         "\t-L\t\tLog locally as well as network logging (default is network only)\n"
1181 #endif
1182 #endif
1183         ;
1184 #endif
1185
1186 #if defined BB_TAIL
1187 const char tail_usage[] =
1188         "tail [OPTION] [FILE]...\n"
1189 #ifndef BB_FEATURE_TRIVIAL_HELP
1190         "\nPrint last 10 lines of each FILE to standard output.\n"
1191         "With more than one FILE, precede each with a header giving the\n"
1192         "file name. With no FILE, or when FILE is -, read standard input.\n\n"
1193         "Options:\n"
1194 #ifndef BB_FEATURE_SIMPLE_TAIL
1195         "\t-c=N[kbm]\toutput the last N bytes\n"
1196 #endif
1197         "\t-n NUM\t\tPrint last NUM lines instead of first 10\n"
1198         "\t-f\t\tOutput data as the file grows.\n"
1199 #ifndef BB_FEATURE_SIMPLE_TAIL
1200         "\t-q\t\tnever output headers giving file names\n"
1201         "\t-s SEC\t\tWait SEC seconds between reads with -f\n"
1202         "\t-v\t\talways output headers giving file names\n\n"
1203         "If the first character of N (bytes or lines) is a `+', output begins with \n"
1204         "the Nth item from the start of each file, otherwise, print the last N items\n"
1205         "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).\n"
1206 //#else
1207 //      "\nIf the first character of N (bytes or lines) is a `+', output begins with \n"
1208 //      "the Nth item from the start of each file.\n"
1209 #endif
1210 #endif
1211         ;
1212 #endif
1213
1214 #if defined BB_TAR
1215 const char tar_usage[] =
1216 #ifdef BB_FEATURE_TAR_CREATE
1217         "tar -[cxtvO] "
1218 #else
1219         "tar -[xtvO] "
1220 #endif
1221 #if defined BB_FEATURE_TAR_EXCLUDE
1222         "[--exclude File] "
1223         "[-X File]"
1224 #endif
1225         "[-f tarFile] [FILE(s)] ...\n"
1226 #ifndef BB_FEATURE_TRIVIAL_HELP
1227         "\nCreate, extract, or list files from a tar file.\n\n"
1228         "Main operation mode:\n"
1229 #ifdef BB_FEATURE_TAR_CREATE
1230         "\tc\t\tcreate\n"
1231 #endif
1232         "\tx\t\textract\n"
1233         "\tt\t\tlist\n"
1234         "\nFile selection:\n"
1235         "\tf\t\tname of tarfile or \"-\" for stdin\n"
1236         "\tO\t\textract to stdout\n"
1237 #if defined BB_FEATURE_TAR_EXCLUDE
1238         "\texclude\t\tfile to exclude\n"
1239         "\tX\t\tfile with names to exclude\n"
1240 #endif
1241         "\nInformative output:\n"
1242         "\tv\t\tverbosely list files processed\n"
1243 #endif
1244         ;
1245 #endif
1246
1247 #if defined BB_TEE
1248 const char tee_usage[] =
1249         "tee [OPTION]... [FILE]...\n"
1250 #ifndef BB_FEATURE_TRIVIAL_HELP
1251         "\nCopy standard input to each FILE, and also to standard output.\n\n"
1252         "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite\n"
1253 #endif
1254         ;
1255 #endif
1256
1257 #if defined BB_TELNET
1258 const char telnet_usage[] =
1259         "telnet host [port]\n"
1260 #ifndef BB_FEATURE_TRIVIAL_HELP
1261         "\nTelnet is used to establish interactive communication with another\n"
1262         "computer over a network using the TELNET protocol.\n"
1263 #endif
1264         ;
1265 #endif
1266
1267 #if defined BB_TEST
1268 const char test_usage[] =
1269         "test EXPRESSION\n"
1270         "or   [ EXPRESSION ]\n"
1271 #ifndef BB_FEATURE_TRIVIAL_HELP
1272         "\nChecks file types and compares values returning an exit\n"
1273         "code determined by the value of EXPRESSION.\n"
1274 #endif
1275         ;
1276 #endif
1277
1278 #if defined BB_TOUCH
1279 const char touch_usage[] =
1280         "touch [-c] file [file ...]\n"
1281 #ifndef BB_FEATURE_TRIVIAL_HELP
1282         "\nUpdate the last-modified date on the given file[s].\n\n"
1283         "Options:\n"
1284         "\t-c\tDo not create any files\n"
1285 #endif
1286         ;
1287 #endif
1288
1289 #if defined BB_TR
1290 const char tr_usage[] =
1291         "tr [-cds] STRING1 [STRING2]\n"
1292 #ifndef BB_FEATURE_TRIVIAL_HELP
1293         "\nTranslate, squeeze, and/or delete characters from\n"
1294         "standard input, writing to standard output.\n\n"
1295         "Options:\n"
1296         "\t-c\ttake complement of STRING1\n"
1297         "\t-d\tdelete input characters coded STRING1\n"
1298         "\t-s\tsqueeze multiple output characters of STRING2 into one character\n"
1299 #endif
1300         ;
1301 #endif
1302
1303 #if defined BB_TRUE_FALSE
1304 const char true_usage[] =
1305         "true\n"
1306 #ifndef BB_FEATURE_TRIVIAL_HELP
1307         "\nReturn an exit code of TRUE (0).\n"
1308 #endif
1309         ;
1310 #endif
1311
1312 #if defined BB_TTY
1313 const char tty_usage[] =
1314         "tty\n"
1315 #ifndef BB_FEATURE_TRIVIAL_HELP
1316         "\nPrint the file name of the terminal connected to standard input.\n\n"
1317         "Options:\n"
1318         "\t-s\tprint nothing, only return an exit status\n"
1319 #endif
1320         ;
1321 #endif
1322
1323 #if defined BB_UMOUNT
1324 const char umount_usage[] =
1325         "umount [flags] filesystem|directory\n"
1326 #ifndef BB_FEATURE_TRIVIAL_HELP
1327         "Unmount file systems\n"
1328         "\nFlags:\n" "\t-a:\tUnmount all file systems"
1329 #ifdef BB_MTAB
1330         " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1331 #else
1332         "\n"
1333 #endif
1334         "\t-r:\tTry to remount devices as read-only if mount is busy\n"
1335 #if defined BB_FEATURE_MOUNT_FORCE
1336         "\t-f:\tForce filesystem umount (i.e. unreachable NFS server)\n"
1337 #endif
1338 #if defined BB_FEATURE_MOUNT_LOOP
1339         "\t-l:\tDo not free loop device (if a loop device has been used)\n"
1340 #endif
1341 #endif
1342         ;
1343 #endif
1344
1345 #if defined BB_UNAME
1346 const char uname_usage[] =
1347         "uname [OPTION]...\n"
1348 #ifndef BB_FEATURE_TRIVIAL_HELP
1349         "\nPrint certain system information.  With no OPTION, same as -s.\n\n"
1350         "Options:\n"
1351         "\t-a\tprint all information\n"
1352         "\t-m\tthe machine (hardware) type\n"
1353         "\t-n\tprint the machine's network node hostname\n"
1354         "\t-r\tprint the operating system release\n"
1355         "\t-s\tprint the operating system name\n"
1356
1357         "\t-p\tprint the host processor type\n"
1358         "\t-v\tprint the operating system version\n"
1359 #endif
1360         ;
1361 #endif
1362
1363 #if defined BB_UNIQ
1364 const char uniq_usage[] =
1365         "uniq [OPTION]... [INPUT [OUTPUT]]\n"
1366 #ifndef BB_FEATURE_TRIVIAL_HELP
1367         "\nDiscard all but one of successive identical lines from INPUT\n"
1368         "(or standard input), writing to OUTPUT (or standard output).\n"
1369         "Options:\n"
1370         "\t-c\tprefix lines by the number of occurrences\n"
1371         "\t-d\tonly print duplicate lines\n"
1372         "\t-u\tonly print unique lines\n"
1373 #endif
1374         ;
1375 #endif
1376
1377 #if defined BB_UNIX2DOS
1378 const char unix2dos_usage[] =
1379         "unix2dos < unixfile > dosfile\n"
1380 #ifndef BB_FEATURE_TRIVIAL_HELP
1381         "\nConverts a text file from unix format to dos format.\n"
1382 #endif
1383         ;
1384 #endif
1385
1386 #if defined BB_UPDATE
1387 const char update_usage[] =
1388         "update [options]\n"
1389 #ifndef BB_FEATURE_TRIVIAL_HELP
1390         "\nPeriodically flushes filesystem buffers.\n\n"
1391         "Options:\n"
1392         "\t-S\tforce use of sync(2) instead of flushing\n"
1393         "\t-s SECS\tcall sync this often (default 30)\n"
1394         "\t-f SECS\tflush some buffers this often (default 5)\n"
1395 #endif
1396         ;
1397 #endif
1398
1399 #if defined BB_UPTIME
1400 const char uptime_usage[] =
1401         "uptime\n"
1402 #ifndef BB_FEATURE_TRIVIAL_HELP
1403         "\nDisplay the time since the last boot.\n"
1404 #endif
1405         ;
1406 #endif
1407
1408 #if defined BB_USLEEP
1409 const char usleep_usage[] =
1410         "usleep N\n" 
1411 #ifndef BB_FEATURE_TRIVIAL_HELP
1412         "\nPause for N microseconds.\n"
1413 #endif
1414         ;
1415 #endif
1416
1417 #if defined BB_UUDECODE
1418 const char uudecode_usage[] =
1419         "uudecode [FILE]...\n"
1420 #ifndef BB_FEATURE_TRIVIAL_HELP
1421         "\nUudecode a file that is uuencoded.\n\n"
1422         "Options:\n"
1423         "\t-o FILE\tdirect output to FILE\n"
1424 #endif
1425         ;
1426 #endif
1427
1428 #if defined BB_UUENCODE
1429 const char uuencode_usage[] =
1430         "uuencode [OPTION] [INFILE] REMOTEFILE\n"
1431 #ifndef BB_FEATURE_TRIVIAL_HELP
1432         "\nUuencode a file.\n\n"
1433         "Options:\n"
1434         "\t-m\tuse base64 encoding as of RFC1521\n"
1435 #endif
1436         ;
1437 #endif
1438
1439 #if defined BB_WC
1440 const char wc_usage[] =
1441         "wc [OPTION]... [FILE]...\n"
1442 #ifndef BB_FEATURE_TRIVIAL_HELP
1443         "\nPrint line, word, and byte counts for each FILE, and a total line if\n"
1444         "more than one FILE is specified.  With no FILE, read standard input.\n\n"
1445         "Options:\n"
1446         "\t-c\tprint the byte counts\n"
1447         "\t-l\tprint the newline counts\n"
1448
1449         "\t-L\tprint the length of the longest line\n"
1450         "\t-w\tprint the word counts\n"
1451 #endif
1452         ;
1453 #endif
1454
1455 #if defined BB_WGET
1456 const char wget_usage[] = "wget [-c] [-O file] url\n"
1457 #ifndef BB_FEATURE_TRIVIAL_HELP
1458         "\nwget retrieves files via HTTP\n\n"
1459         "Options:\n"
1460         "\t-c\tcontinue retrieval of aborted transfers\n"
1461         "\t-O\tsave to filename ('-' for stdout)\n"
1462 #endif
1463         ;
1464 #endif
1465
1466 #if defined BB_WHICH
1467 const char which_usage[] =
1468         "which [COMMAND ...]\n"
1469 #ifndef BB_FEATURE_TRIVIAL_HELP
1470         "\nLocates a COMMAND.\n"
1471 #endif
1472         ;
1473 #endif
1474
1475 #if defined BB_WHOAMI
1476 const char whoami_usage[] =
1477         "whoami\n"
1478 #ifndef BB_FEATURE_TRIVIAL_HELP
1479         "\nPrints the user name associated with the current effective user id.\n"
1480 #endif
1481         ;
1482 #endif
1483
1484 #if defined BB_XARGS
1485 const char xargs_usage[] = "xargs [COMMAND] [ARGS...]\n"
1486 #ifndef BB_FEATURE_TRIVIAL_HELP
1487         "\nExecutes COMMAND on every item given by standard input.\n" 
1488 #endif
1489         ;
1490 #endif
1491
1492 #if defined BB_YES
1493 const char yes_usage[] =
1494         "yes [OPTION]... [STRING]...\n"
1495 #ifndef BB_FEATURE_TRIVIAL_HELP
1496         "\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"
1497 #endif
1498         ;
1499 #endif
1500