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