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