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