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