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