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