3 extern const char usage_messages[];
7 #elif defined USAGE_MESSAGES
8 const char usage_messages[] =
11 #if defined USAGE_ENUM || defined USAGE_MESSAGES
15 #if defined USAGE_ENUM
17 #elif defined USAGE_MESSAGES
25 #if defined USAGE_ENUM
27 #elif defined USAGE_MESSAGES
28 "-[ovR]{ptx} archive filenames"
29 #ifndef BB_FEATURE_TRIVIAL_HELP
30 "\n\nExtract or list files from an ar archive.\n\n"
32 "\t-o\t\tpreserve original dates\n"
33 "\t-p\t\textract to stdout\n"
36 "\t-v\t\tverbosely list files processed\n"
37 "\t-R\t\trecursive action"
43 #if defined BB_BASENAME
44 #if defined USAGE_ENUM
46 #elif defined USAGE_MESSAGES
48 #ifndef BB_FEATURE_TRIVIAL_HELP
49 "\n\nStrips directory path and suffixes from FILE.\n"
50 "If specified, also removes any trailing SUFFIX."
57 #if defined USAGE_ENUM
59 #elif defined USAGE_MESSAGES
61 #ifndef BB_FEATURE_TRIVIAL_HELP
62 "\n\nConcatenates FILE(s) and prints them to stdout."
68 #if defined BB_CHMOD_CHOWN_CHGRP
69 #if defined USAGE_ENUM
71 #elif defined USAGE_MESSAGES
72 "[OPTION]... GROUP FILE..."
73 #ifndef BB_FEATURE_TRIVIAL_HELP
74 "\n\nChange the group membership of each FILE to GROUP.\n"
75 "\nOptions:\n\t-R\tChanges files and directories recursively."
81 #if defined BB_CHMOD_CHOWN_CHGRP
82 #if defined USAGE_ENUM
84 #elif defined USAGE_MESSAGES
85 "[-R] MODE[,MODE]... FILE..."
86 #ifndef BB_FEATURE_TRIVIAL_HELP
87 "\n\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n"
88 "one or more of the letters rwxst.\n\n"
89 "\nOptions:\n\t-R\tChanges files and directories recursively."
95 #if defined BB_CHMOD_CHOWN_CHGRP
96 #if defined USAGE_ENUM
98 #elif defined USAGE_MESSAGES
99 "[OPTION]... OWNER[<.|:>[GROUP] FILE..."
100 #ifndef BB_FEATURE_TRIVIAL_HELP
101 "\n\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n"
102 "\nOptions:\n\t-R\tChanges files and directories recursively."
108 #if defined BB_CHROOT
109 #if defined USAGE_ENUM
111 #elif defined USAGE_MESSAGES
112 "NEWROOT [COMMAND...]"
113 #ifndef BB_FEATURE_TRIVIAL_HELP
114 "\n\nRun COMMAND with root directory set to NEWROOT."
121 #if defined USAGE_ENUM
123 #elif defined USAGE_MESSAGES
125 #ifndef BB_FEATURE_TRIVIAL_HELP
126 "\n\nChanges the foreground virtual terminal to /dev/ttyN"
133 #if defined USAGE_ENUM
135 #elif defined USAGE_MESSAGES
137 #ifndef BB_FEATURE_TRIVIAL_HELP
145 #if defined USAGE_ENUM
147 #elif defined USAGE_MESSAGES
149 #ifndef BB_FEATURE_TRIVIAL_HELP
157 #if defined USAGE_ENUM
159 #elif defined USAGE_MESSAGES
160 "[OPTION]... SOURCE DEST\n"
161 " or: cp [OPTION]... SOURCE... DIRECTORY"
162 #ifndef BB_FEATURE_TRIVIAL_HELP
163 "\n\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
165 "\t-a\tSame as -dpR\n"
166 "\t-d\tPreserves links\n"
167 "\t-p\tPreserves file attributes if possible\n"
168 "\t-f\tforce (implied; ignored) - always set\n"
169 "\t-R\tCopies directories recursively"
176 #if defined USAGE_ENUM
178 #elif defined USAGE_MESSAGES
179 "[OPTION]... [FILE]..."
180 #ifndef BB_FEATURE_TRIVIAL_HELP
181 "\n\nPrints selected fields from each input FILE to standard output.\n\n"
183 "\t-b LIST\tOutput only bytes from LIST\n"
184 "\t-c LIST\tOutput only characters from LIST\n"
185 "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n"
186 "\t-s\tOutput only the lines containing delimiter\n"
187 "\t-f N\tPrint only these fields\n"
195 #if defined USAGE_ENUM
197 #elif defined USAGE_MESSAGES
198 "[OPTION]... [+FORMAT]\n"
199 " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]"
200 #ifndef BB_FEATURE_TRIVIAL_HELP
201 "\n\nDisplays the current time in the given FORMAT, or sets the system date.\n"
202 "\nOptions:\n\t-R\t\tOutputs RFC-822 compliant date string\n"
203 "\t-d STRING\tdisplay time described by STRING, not `now'\n"
204 "\t-s\t\tSets time described by STRING\n"
205 "\t-u\t\tPrints or sets Coordinated Universal Time"
212 #if defined USAGE_ENUM
214 #elif defined USAGE_MESSAGES
216 #ifndef BB_FEATURE_TRIVIAL_HELP
217 "\n\nThis is a Tiny RPN calculator that understands the\n"
218 "following operations: +, -, /, *, and, or, not, eor.\n"
219 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16"
226 #if defined USAGE_ENUM
228 #elif defined USAGE_MESSAGES
229 "[if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|sync]"
230 #ifndef BB_FEATURE_TRIVIAL_HELP
231 "\n\nCopy a file, converting and formatting according to options\n\n"
232 "\tif=FILE\tread from FILE instead of stdin\n"
233 "\tof=FILE\twrite to FILE instead of stdout\n"
234 "\tbs=N\tread and write N bytes at a time\n"
235 "\tcount=N\tcopy only N input blocks\n"
236 "\tskip=N\tskip N input blocks\n"
237 "\tseek=N\tskip N output blocks\n"
238 "\tconv=notrunc\tdon't truncate output file\n"
239 "\tconv=sync\tpad blocks with zeros\n"
241 "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n"
242 "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)."
248 #if defined BB_DEALLOCVT
249 #if defined USAGE_ENUM
250 deallocvt_usage_index
251 #elif defined USAGE_MESSAGES
253 #ifndef BB_FEATURE_TRIVIAL_HELP
254 "\n\nDeallocate unused virtual terminal /dev/ttyN"
261 #if defined USAGE_ENUM
263 #elif defined USAGE_MESSAGES
265 #ifdef BB_FEATURE_HUMAN_READABLE
268 "k] [filesystem ...]\n"
269 #ifndef BB_FEATURE_TRIVIAL_HELP
270 "\n\nPrint the filesystem space used and space available."
272 "\t-?\tshow usage information"
273 #ifdef BB_FEATURE_HUMAN_READABLE
274 "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
275 "\t-m\tprint sizes in megabytes\n"
276 "\t-k\tprint sizes in kilobytes(default)"
278 "\n\t-k\tprint sizes in kilobytes(compatability)"
285 #if defined BB_DIRNAME
286 #if defined USAGE_ENUM
288 #elif defined USAGE_MESSAGES
290 #ifndef BB_FEATURE_TRIVIAL_HELP
291 "\n\nStrips non-directory suffix from FILENAME"
298 #if defined USAGE_ENUM
300 #elif defined USAGE_MESSAGES
301 "[-c] [-n LEVEL] [-s SIZE]"
302 #ifndef BB_FEATURE_TRIVIAL_HELP
303 "\n\nPrints or controls the kernel ring buffer\n\n"
305 "\t-c\t\tClears the ring buffer's contents after printing\n"
306 "\t-n LEVEL\tSets console logging level\n"
307 "\t-s SIZE\t\tUse a buffer of size SIZE"
313 #if defined BB_DOS2UNIX
314 #if defined USAGE_ENUM
316 #elif defined USAGE_MESSAGES
317 "< dosfile > unixfile"
318 #ifndef BB_FEATURE_TRIVIAL_HELP
319 "\n\nConverts a text file from dos format to unix format."
326 #if defined USAGE_ENUM
328 #elif defined USAGE_MESSAGES
329 "<-i|-r|--unpack|--configure> my.deb\n"
330 "WORK IN PROGRESS, only usefull for debian-installer"
331 #ifndef BB_FEATURE_TRIVIAL_HELP
337 #if defined BB_DPKG_DEB
338 #if defined USAGE_ENUM
340 #elif defined USAGE_MESSAGES
341 "[-cexX] file directory"
342 #ifndef BB_FEATURE_TRIVIAL_HELP
343 "\n\nPerform actions on debian packages (.debs)\n\n"
345 "\t-c\tList contents of filesystem tree (verbose)\n"
346 "\t-l\tList contents of filesystem tree (.list format)\n"
347 "\t-e\tExtract control files to directory\n"
348 "\t-x\tExctract packages filesystem tree to directory\n"
349 "\t-X\tVerbose extract"
356 #if defined USAGE_ENUM
358 #elif defined USAGE_MESSAGES
360 #ifdef BB_FEATURE_HUMAN_READABLE
364 #ifndef BB_FEATURE_TRIVIAL_HELP
365 "\n\nSummarizes disk space used for each FILE and/or directory.\n"
366 "Disk space is printed in units of 1024 bytes.\n\n"
368 "\t-?\tshow usage information\n"
369 "\t-l\tcount sizes many times if hard linked\n"
370 "\t-s\tdisplay only a total for each argument"
371 #ifdef BB_FEATURE_HUMAN_READABLE
372 "\n\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
373 "\t-m\tprint sizes in megabytes\n"
374 "\t-k\tprint sizes in kilobytes(default)"
376 "\n\t-k\tprint sizes in kilobytes(compatability)"
383 #if defined BB_DUMPKMAP
384 #if defined USAGE_ENUM
386 #elif defined USAGE_MESSAGES
388 #ifndef BB_FEATURE_TRIVIAL_HELP
389 "\n\nPrints out a binary keyboard translation table to standard input."
396 #if defined USAGE_ENUM
398 #elif defined USAGE_MESSAGES
400 #ifndef BB_FEATURE_TRIVIAL_HELP
401 "\n\nDump utmp file format (pipe delimited) from FILE\n"
402 "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')"
409 #if defined USAGE_ENUM
411 #elif defined USAGE_MESSAGES
413 #ifndef BB_FEATURE_TRIVIAL_HELP
414 "\n\nPrints the specified ARGs to stdout\n\n"
416 "\t-n\tsuppress trailing newline\n"
417 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
418 "\t-E\tdisable interpretation of backslash-escaped characters"
425 #if defined USAGE_ENUM
427 #elif defined USAGE_MESSAGES
429 #ifndef BB_FEATURE_TRIVIAL_HELP
430 "\n\nPrints the value of EXPRESSION to standard output.\n\n"
431 "EXPRESSION may be:\n"
432 "ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n"
433 "ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n"
434 "ARG1 < ARG2 ARG1 is less than ARG2\n"
435 "ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n"
436 "ARG1 = ARG2 ARG1 is equal to ARG2\n"
437 "ARG1 != ARG2 ARG1 is unequal to ARG2\n"
438 "ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n"
439 "ARG1 > ARG2 ARG1 is greater than ARG2\n"
440 "ARG1 + ARG2 arithmetic sum of ARG1 and ARG2\n"
441 "ARG1 - ARG2 arithmetic difference of ARG1 and ARG2\n"
442 "ARG1 * ARG2 arithmetic product of ARG1 and ARG2\n"
443 "ARG1 / ARG2 arithmetic quotient of ARG1 divided by ARG2\n"
444 "ARG1 % ARG2 arithmetic remainder of ARG1 divided by ARG2\n"
445 "STRING : REGEXP anchored pattern match of REGEXP in STRING\n"
446 "match STRING REGEXP same as STRING : REGEXP\n"
447 "substr STRING POS LENGTH substring of STRING, POS counted from 1\n"
448 "index STRING CHARS index in STRING where any CHARS is found, or 0\n"
449 "length STRING length of STRING\n"
450 "quote TOKEN interpret TOKEN as a string, even if it is a \n"
451 " keyword like `match' or an operator like `/'\n"
452 "( EXPRESSION ) value of EXPRESSION\n\n"
453 "Beware that many operators need to be escaped or quoted for shells.\n"
454 "Comparisons are arithmetic if both ARGs are numbers, else\n"
455 "lexicographical. Pattern matches return the string matched between \n"
456 "\\( and \\) or null; if \\( and \\) are not used, they return the number \n"
457 "of characters matched or 0."
465 #if defined BB_TRUE_FALSE
466 #if defined USAGE_ENUM
468 #elif defined USAGE_MESSAGES
470 #ifndef BB_FEATURE_TRIVIAL_HELP
471 "\n\nReturn an exit code of FALSE (1)."
478 #if defined USAGE_ENUM
480 #elif defined USAGE_MESSAGES
481 "fbset [options] [mode]"
482 #ifndef BB_FEATURE_TRIVIAL_HELP
483 "\n\nShows and modifies frame buffer device settings"
489 #if defined BB_FDFLUSH
490 #if defined USAGE_ENUM
492 #elif defined USAGE_MESSAGES
494 #ifndef BB_FEATURE_TRIVIAL_HELP
495 "\n\nForces floppy disk drive to detect disk change"
502 #if defined USAGE_ENUM
504 #elif defined USAGE_MESSAGES
505 "[PATH...] [EXPRESSION]"
506 #ifndef BB_FEATURE_TRIVIAL_HELP
507 "\n\nSearch for files in a directory hierarchy. The default PATH is\n"
508 "the current directory; default EXPRESSION is '-print'\n\n"
509 "\nEXPRESSION may consist of:\n"
510 "\t-follow\t\tDereference symbolic links.\n"
511 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN."
512 #ifdef BB_FEATURE_FIND_TYPE
513 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)"
515 #ifdef BB_FEATURE_FIND_PERM
516 "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)"
518 #ifdef BB_FEATURE_FIND_MTIME
519 "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days"
527 #if defined USAGE_ENUM
529 #elif defined USAGE_MESSAGES
531 #ifndef BB_FEATURE_TRIVIAL_HELP
532 "\n\nDisplays the amount of free and used system memory"
538 #if defined BB_FREERAMDISK
539 #if defined USAGE_ENUM
540 freeramdisk_usage_index
541 #elif defined USAGE_MESSAGES
543 #ifndef BB_FEATURE_TRIVIAL_HELP
544 "\n\nFrees all memory used by the specified ramdisk."
550 #if defined BB_FSCK_MINIX
551 #if defined USAGE_ENUM
552 fsck_minix_usage_index
553 #elif defined USAGE_MESSAGES
554 "[-larvsmf] /dev/name"
555 #ifndef BB_FEATURE_TRIVIAL_HELP
556 "\n\nPerforms a consistency check for MINIX filesystems.\n\n"
558 "\t-l\tLists all filenames\n"
559 "\t-r\tPerform interactive repairs\n"
560 "\t-a\tPerform automatic repairs\n"
562 "\t-s\tOutputs super-block information\n"
563 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
564 "\t-f\tForce file system check."
570 #if defined BB_GETOPT
571 #if defined USAGE_ENUM
573 #elif defined USAGE_MESSAGES
575 #ifndef BB_FEATURE_TRIVIAL_HELP
576 "\nParse command options\n"
577 " -a, --alternative Allow long options starting with single -\n"
578 " -l, --longoptions=longopts Long options to be recognized\n"
579 " -n, --name=progname The name under which errors are reported\n"
580 " -o, --options=optstring Short options to be recognized\n"
581 " -q, --quiet Disable error reporting by getopt(3)\n"
582 " -Q, --quiet-output No normal output\n"
583 " -s, --shell=shell Set shell quoting conventions\n"
584 " -T, --test Test for getopt(1) version\n"
585 " -u, --unqote Do not quote the output"
592 #if defined USAGE_ENUM
594 #elif defined USAGE_MESSAGES
595 "[-ihHnqvs] pattern [files...]"
596 #ifndef BB_FEATURE_TRIVIAL_HELP
597 "\n\nSearch for PATTERN in each FILE or standard input.\n\n"
599 "\t-H\tprefix output lines with filename where match was found\n"
600 "\t-h\tsuppress the prefixing filename on output\n"
601 "\t-i\tignore case distinctions\n"
602 "\t-n\tprint line number with output lines\n"
603 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
604 "\t-v\tselect non-matching lines\n"
605 "\t-s\tsuppress file open/read error messages"
611 #if defined BB_GUNZIP
612 #if defined USAGE_ENUM
614 #elif defined USAGE_MESSAGES
616 #ifndef BB_FEATURE_TRIVIAL_HELP
617 "\n\nUncompress FILE (or standard input if FILE is '-').\n\n"
619 "\t-c\tWrite output to standard output\n"
620 "\t-t\tTest compressed file integrity"
627 #if defined USAGE_ENUM
629 #elif defined USAGE_MESSAGES
631 #ifndef BB_FEATURE_TRIVIAL_HELP
632 "\n\nCompress FILE with maximum compression.\n"
633 "When FILE is '-', reads standard input. Implies -c.\n\n"
635 "\t-c\tWrite output to standard output instead of FILE.gz\n"
643 #if defined USAGE_ENUM
645 #elif defined USAGE_MESSAGES
647 #ifndef BB_FEATURE_TRIVIAL_HELP
648 "\n\nHalt the system."
655 #if defined USAGE_ENUM
657 #elif defined USAGE_MESSAGES
659 #ifndef BB_FEATURE_TRIVIAL_HELP
660 "\n\nPrint first 10 lines of each FILE to standard output.\n"
661 "With more than one FILE, precede each with a header giving the\n"
662 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
664 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10"
670 #if defined BB_HOSTID
671 #if defined USAGE_ENUM
673 #elif defined USAGE_MESSAGES
675 #ifndef BB_FEATURE_TRIVIAL_HELP
676 "\n\nPrint out a unique 32-bit identifier for the machine."
682 #if defined BB_HOSTNAME
683 #if defined USAGE_ENUM
685 #elif defined USAGE_MESSAGES
686 "[OPTION] {hostname | -F file}"
687 #ifndef BB_FEATURE_TRIVIAL_HELP
688 "\n\nGet or set the hostname or DNS domain name. If a hostname is given\n"
689 "(or a file with the -F parameter), the host name will be set.\n\n"
693 "\t-i\t\tAddresses for the hostname\n"
694 "\t-d\t\tDNS domain name\n"
695 "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
702 #if defined USAGE_ENUM
704 #elif defined USAGE_MESSAGES
705 "[OPTIONS]... [USERNAME]"
706 #ifndef BB_FEATURE_TRIVIAL_HELP
707 "\n\nPrint information for USERNAME or the current user\n\n"
709 "\t-g\tprints only the group ID\n"
710 "\t-u\tprints only the user ID\n"
711 "\t-n\tprint a name instead of a number (with for -ug)\n"
712 "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
718 #if defined BB_IFCONFIG
719 #if defined USAGE_ENUM
721 #elif defined USAGE_MESSAGES
722 "[-a] [-i] [-v] <interface> [<address>]"
723 #ifndef BB_FEATURE_TRIVIAL_HELP
724 "\n\nconfigure a network interface\n\n"
726 " [[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n"
727 " [netmask <address>] [dstaddr <address>] [tunnel <adress>]\n"
728 #ifdef SIOCSKEEPALIVE
729 " [outfill <NN>] [keepalive <NN>]\n"
731 " [hw ether <address>] [metric <NN>] [mtu <NN>]\n"
732 " [[-]trailers] [[-]arp] [[-]allmulti]\n"
733 " [multicast] [[-]promisc]\n"
734 " [mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]\n"
742 #if defined USAGE_ENUM
744 #elif defined USAGE_MESSAGES
746 #ifndef BB_FEATURE_TRIVIAL_HELP
747 "\n\nInit is the parent of all processes.\n\n"
748 "This version of init is designed to be run only by the kernel."
754 #if defined BB_INSMOD
755 #if defined USAGE_ENUM
757 #elif defined USAGE_MESSAGES
758 "[OPTION]... MODULE [symbol=value]..."
759 #ifndef BB_FEATURE_TRIVIAL_HELP
760 "\n\nLoads the specified kernel modules into the kernel.\n\n"
762 "\t-f\tForce module to load into the wrong kernel version.\n"
763 "\t-k\tMake module autoclean-able.\n"
764 "\t-v\tverbose output\n"
765 "\t-L\tLock to prevent simultaneous loads of a module\n"
766 "\t-x\tdo not export externs"
773 #if defined USAGE_ENUM
775 #elif defined USAGE_MESSAGES
776 "[-signal] process-id [process-id ...]"
777 #ifndef BB_FEATURE_TRIVIAL_HELP
778 "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
779 "Options:\n" "\t-l\tList all signal names and numbers."
785 #if defined BB_KILLALL
786 #if defined USAGE_ENUM
788 #elif defined USAGE_MESSAGES
789 "[-signal] process-name [process-name ...]"
790 #ifndef BB_FEATURE_TRIVIAL_HELP
791 "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
792 "Options:\n" "\t-l\tList all signal names and numbers."
798 #if defined BB_LENGTH
799 #if defined USAGE_ENUM
801 #elif defined USAGE_MESSAGES
803 #ifndef BB_FEATURE_TRIVIAL_HELP
804 "\n\nPrints out the length of the specified STRING."
811 #if defined USAGE_ENUM
813 #elif defined USAGE_MESSAGES
814 "[OPTION] TARGET... LINK_NAME|DIRECTORY"
815 #ifndef BB_FEATURE_TRIVIAL_HELP
816 "\n\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
817 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
819 "\t-s\tmake symbolic links instead of hard links\n"
820 "\t-f\tremove existing destination files\n"
821 "\t-n\tno dereference symlinks - treat like normal file"
827 #if defined BB_LOADACM
828 #if defined USAGE_ENUM
830 #elif defined USAGE_MESSAGES
832 #ifndef BB_FEATURE_TRIVIAL_HELP
833 "\n\nLoads an acm from standard input."
839 #if defined BB_LOADFONT
840 #if defined USAGE_ENUM
842 #elif defined USAGE_MESSAGES
844 #ifndef BB_FEATURE_TRIVIAL_HELP
845 "\n\nLoads a console font from standard input."
851 #if defined BB_LOADKMAP
852 #if defined USAGE_ENUM
854 #elif defined USAGE_MESSAGES
856 #ifndef BB_FEATURE_TRIVIAL_HELP
857 "\n\nLoads a binary keyboard translation table from standard input."
863 #if defined BB_LOGGER
864 #if defined USAGE_ENUM
866 #elif defined USAGE_MESSAGES
867 "[OPTION]... [MESSAGE]"
868 #ifndef BB_FEATURE_TRIVIAL_HELP
869 "\n\nWrite MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n"
871 "\t-s\tLog to stderr as well as the system log.\n"
872 "\t-t\tLog using the specified tag (defaults to user name).\n"
873 "\t-p\tEnter the message with the specified priority.\n"
874 "\t\tThis may be numerical or a ``facility.level'' pair."
880 #if defined BB_LOGNAME
881 #if defined USAGE_ENUM
883 #elif defined USAGE_MESSAGES
885 #ifndef BB_FEATURE_TRIVIAL_HELP
886 "\n\nPrint the name of the current user."
893 #if defined USAGE_ENUM
895 #elif defined USAGE_MESSAGES
897 #ifdef BB_FEATURE_LS_TIMESTAMPS
901 #ifdef BB_FEATURE_LS_TIMESTAMPS
904 #ifdef BB_FEATURE_LS_FILETYPES
908 #ifdef BB_FEATURE_LS_FILETYPES
911 #ifdef BB_FEATURE_LS_FOLLOWLINKS
914 #ifdef BB_FEATURE_LS_RECURSIVE
917 #ifdef BB_FEATURE_LS_SORTFILES
921 #ifdef BB_FEATURE_AUTOWIDTH
924 #ifdef BB_FEATURE_LS_TIMESTAMPS
927 #ifdef BB_FEATURE_LS_SORTFILES
930 #ifdef BB_FEATURE_AUTOWIDTH
934 #ifdef BB_FEATURE_LS_SORTFILES
937 #ifdef BB_FEATURE_HUMAN_READABLE
941 #ifndef BB_FEATURE_TRIVIAL_HELP
942 "\n\nList directory contents\n\n"
944 "\t-1\tlist files in a single column\n"
945 "\t-A\tdo not list implied . and ..\n"
946 "\t-a\tdo not hide entries starting with .\n"
947 "\t-C\tlist entries by columns\n"
948 #ifdef BB_FEATURE_LS_TIMESTAMPS
949 "\t-c\twith -l: show ctime (the time of last\n"
950 "\t\tmodification of file status information)\n"
952 "\t-d\tlist directory entries instead of contents\n"
953 #ifdef BB_FEATURE_LS_TIMESTAMPS
954 "\t-e\tlist both full date and full time\n"
956 #ifdef BB_FEATURE_LS_FILETYPES
957 "\t-F\tappend indicator (one of */=@|) to entries\n"
959 "\t-i\tlist the i-node for each file\n"
960 "\t-l\tuse a long listing format\n"
961 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
962 #ifdef BB_FEATURE_LS_FILETYPES
963 "\t-p\tappend indicator (one of /=@|) to entries\n"
965 #ifdef BB_FEATURE_LS_FOLLOWLINKS
966 "\t-L\tlist entries pointed to by symbolic links\n"
968 #ifdef BB_FEATURE_LS_RECURSIVE
969 "\t-R\tlist subdirectories recursively\n"
971 #ifdef BB_FEATURE_LS_SORTFILES
972 "\t-r\tsort the listing in reverse order\n"
973 "\t-S\tsort the listing by file size\n"
975 "\t-s\tlist the size of each file, in blocks\n"
976 #ifdef BB_FEATURE_AUTOWIDTH
977 "\t-T NUM\tassume Tabstop every NUM columns\n"
979 #ifdef BB_FEATURE_LS_TIMESTAMPS
980 "\t-t\twith -l: show modification time (the time of last\n"
981 "\t\tchange of the file)\n"
982 "\t-u\twith -l: show access time (the time of last\n"
983 "\t\taccess of the file)\n"
985 #ifdef BB_FEATURE_LS_SORTFILES
986 "\t-v\tsort the listing by version\n"
988 #ifdef BB_FEATURE_AUTOWIDTH
989 "\t-w NUM\tassume the terminal is NUM columns wide\n"
991 "\t-x\tlist entries by lines instead of by columns\n"
992 #ifdef BB_FEATURE_LS_SORTFILES
993 "\t-X\tsort the listing by extension\n"
996 #ifdef BB_FEATURE_HUMAN_READABLE
997 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
998 "\t-k\tprint sizes in kilobytes(default)"
1000 "\t-k\tprint sizes in kilobytes(compatability)"
1003 #endif /* BB_FEATURE_TRIVIAL_HELP */
1008 #if defined BB_LSMOD
1009 #if defined USAGE_ENUM
1011 #elif defined USAGE_MESSAGES
1013 #ifndef BB_FEATURE_TRIVIAL_HELP
1014 "\n\nList the currently loaded kernel modules."
1020 #if defined BB_MAKEDEVS
1021 #if defined USAGE_ENUM
1022 makedevs_usage_index
1023 #elif defined USAGE_MESSAGES
1024 "NAME TYPE MAJOR MINOR FIRST LAST [s]"
1025 #ifndef BB_FEATURE_TRIVIAL_HELP
1026 "\n\nCreates a range of block or character special files\n\n"
1028 "\tb:\tMake a block (buffered) device.\n"
1029 "\tc or u:\tMake a character (un-buffered) device.\n"
1030 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
1031 "FIRST specifies the number appended to NAME to create the first device.\n"
1032 "LAST specifies the number of the last item that should be created.\n"
1033 "If 's' is the last argument, the base device is created as well.\n\n"
1035 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
1036 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
1042 #if defined BB_MD5SUM
1043 #if defined USAGE_ENUM
1045 #elif defined USAGE_MESSAGES
1046 "[OPTION] [FILE]...\n"
1047 "or: md5sum [OPTION] -c [FILE]"
1048 #ifndef BB_FEATURE_TRIVIAL_HELP
1049 "\n\nPrint or check MD5 checksums.\n\n"
1051 "With no FILE, or when FILE is -, read standard input.\n\n"
1052 "\t-b\tread files in binary mode\n"
1053 "\t-c\tcheck MD5 sums against given list\n"
1054 "\t-t\tread files in text mode (default)\n"
1055 "\t-g\tread a string\n"
1056 "\nThe following two options are useful only when verifying checksums:\n"
1057 "\t-s,\tdon't output anything, status code shows success\n"
1058 "\t-w,\twarn about improperly formated MD5 checksum lines"
1064 #if defined BB_MKDIR
1065 #if defined USAGE_ENUM
1067 #elif defined USAGE_MESSAGES
1068 "[OPTION] DIRECTORY..."
1069 #ifndef BB_FEATURE_TRIVIAL_HELP
1070 "\n\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
1073 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
1074 "\t-p\tno error if existing, make parent directories as needed"
1080 #if defined BB_MKFIFO
1081 #if defined USAGE_ENUM
1083 #elif defined USAGE_MESSAGES
1085 #ifndef BB_FEATURE_TRIVIAL_HELP
1086 "\n\nCreates a named pipe (identical to 'mknod name p')\n\n"
1088 "\t-m\tcreate the pipe using the specified mode (default a=rw)"
1094 #if defined BB_MKFS_MINIX
1095 #if defined USAGE_ENUM
1096 mkfs_minix_usage_index
1097 #elif defined USAGE_MESSAGES
1098 "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
1099 #ifndef BB_FEATURE_TRIVIAL_HELP
1100 "\n\nMake a MINIX filesystem.\n\n"
1102 "\t-c\t\tCheck the device for bad blocks\n"
1103 "\t-n [14|30]\tSpecify the maximum length of filenames\n"
1104 "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
1105 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
1106 "\t-v\t\tMake a Minix version 2 filesystem"
1112 #if defined BB_MKNOD
1113 #if defined USAGE_ENUM
1115 #elif defined USAGE_MESSAGES
1116 "[OPTIONS] NAME TYPE MAJOR MINOR"
1117 #ifndef BB_FEATURE_TRIVIAL_HELP
1118 "\n\nCreate a special file (block, character, or pipe).\n\n"
1120 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
1122 "\tb:\tMake a block (buffered) device.\n"
1123 "\tc or u:\tMake a character (un-buffered) device.\n"
1124 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
1130 #if defined BB_MKSWAP
1131 #if defined USAGE_ENUM
1133 #elif defined USAGE_MESSAGES
1134 "[-c] [-v0|-v1] device [block-count]"
1135 #ifndef BB_FEATURE_TRIVIAL_HELP
1136 "\n\nPrepare a disk partition to be used as a swap partition.\n\n"
1137 "Options:\n" "\t-c\t\tCheck for read-ability.\n"
1138 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
1139 "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
1140 "\tblock-count\tNumber of block to use (default is entire partition)."
1146 #if defined BB_MKTEMP
1147 #if defined USAGE_ENUM
1149 #elif defined USAGE_MESSAGES
1151 #ifndef BB_FEATURE_TRIVIAL_HELP
1152 "\n\nCreates a temporary file with its name based on TEMPLATE.\n"
1153 "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)."
1160 #if defined USAGE_ENUM
1162 #elif defined USAGE_MESSAGES
1164 #ifndef BB_FEATURE_TRIVIAL_HELP
1165 "\n\nMore is a filter for viewing FILE one screenful at a time."
1171 #if defined BB_MOUNT
1172 #if defined USAGE_ENUM
1174 #elif defined USAGE_MESSAGES
1175 "[flags] device directory [-o options,more-options]"
1176 #ifndef BB_FEATURE_TRIVIAL_HELP
1177 "\n\nMount a filesystem\n\n"
1179 "\t-a:\t\tMount all filesystems in fstab.\n"
1181 "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
1182 "\t-n:\t\tDon't write a mount table entry.\n"
1184 "\t-o option:\tOne of many filesystem options, listed below.\n"
1185 "\t-r:\t\tMount the filesystem read-only.\n"
1186 "\t-t fs-type:\tSpecify the filesystem type.\n"
1187 "\t-w:\t\tMount for reading and writing (default).\n"
1189 "Options for use with the \"-o\" flag:\n"
1190 "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
1191 "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
1192 "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
1193 "\texec/noexec:\tAllow use of executable files / disallow them.\n"
1194 #if defined BB_FEATURE_MOUNT_LOOP
1195 "\tloop:\t\tMounts a file via loop device.\n"
1197 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
1198 "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
1199 "\tro/rw:\t\tMount for read-only / read-write.\n"
1200 "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
1201 "You'll have to see the written documentation for those."
1208 #if defined USAGE_ENUM
1210 #elif defined USAGE_MESSAGES
1211 "[-f device] opcode value"
1212 #ifndef BB_FEATURE_TRIVIAL_HELP
1213 "\n\nControl magnetic tape drive operation\n"
1214 "\nAvailable Opcodes:\n\n"
1215 "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n"
1216 "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n"
1217 "ras3 reset retension rew rewoffline seek setblk setdensity\n"
1218 "setpart tell unload unlock weof wset"
1224 #if defined BB_CP_MV
1225 #if defined USAGE_ENUM
1227 #elif defined USAGE_MESSAGES
1229 " or: mv SOURCE... DIRECTORY"
1230 #ifndef BB_FEATURE_TRIVIAL_HELP
1231 "\n\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY."
1238 #if defined USAGE_ENUM
1240 #elif defined USAGE_MESSAGES
1242 #ifndef BB_FEATURE_TRIVIAL_HELP
1243 "\n\nNetcat opens a pipe to IP:port"
1249 #if defined BB_NSLOOKUP
1250 #if defined USAGE_ENUM
1251 nslookup_usage_index
1252 #elif defined USAGE_MESSAGES
1254 #ifndef BB_FEATURE_TRIVIAL_HELP
1255 "\n\nQueries the nameserver for the IP address of the given HOST"
1262 #if defined BB_FEATURE_SIMPLE_PING
1263 #if defined USAGE_ENUM
1265 #elif defined USAGE_MESSAGES
1267 #ifndef BB_FEATURE_TRIVIAL_HELP
1268 "\n\nSend ICMP ECHO_REQUEST packets to network hosts"
1272 #else /* ! defined BB_FEATURE_SIMPLE_PING */
1273 #if defined USAGE_ENUM
1275 #elif defined USAGE_MESSAGES
1277 #ifndef BB_FEATURE_TRIVIAL_HELP
1278 "\n\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
1280 "\t-c COUNT\tSend only COUNT pings.\n"
1281 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
1282 "\t-q\t\tQuiet mode, only displays output at start\n"
1283 "\t\t\tand when finished."
1290 #if defined BB_PIVOT_ROOT
1291 #if defined USAGE_ENUM
1292 pivot_root_usage_index
1293 #elif defined USAGE_MESSAGES
1295 #ifndef BB_FEATURE_TRIVIAL_HELP
1296 "\n\nMove the current root file system to put_old and make new_root\n"
1297 "the new root file system."
1303 #if defined BB_POWEROFF
1304 #if defined USAGE_ENUM
1305 poweroff_usage_index
1306 #elif defined USAGE_MESSAGES
1308 #ifndef BB_FEATURE_TRIVIAL_HELP
1309 "\n\nHalt the system and request that the kernel shut off the power."
1315 #if defined BB_PRINTF
1316 #if defined USAGE_ENUM
1318 #elif defined USAGE_MESSAGES
1319 "FORMAT [ARGUMENT...]"
1320 #ifndef BB_FEATURE_TRIVIAL_HELP
1321 "\n\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
1322 "Where FORMAT controls the output exactly as in C printf."
1329 #if defined USAGE_ENUM
1331 #elif defined USAGE_MESSAGES
1333 #ifndef BB_FEATURE_TRIVIAL_HELP
1334 "\n\nReport process status\n"
1335 "\nThis version of ps accepts no options."
1342 #if defined USAGE_ENUM
1344 #elif defined USAGE_MESSAGES
1346 #ifndef BB_FEATURE_TRIVIAL_HELP
1347 "\n\nPrint the full filename of the current working directory."
1353 #if defined BB_RDATE
1354 #if defined USAGE_ENUM
1356 #elif defined USAGE_MESSAGES
1358 #ifndef BB_FEATURE_TRIVIAL_HELP
1359 "\n\nGet and possibly set the system date and time from a remote HOST.\n"
1361 "\t-s\tSet the system date and time (default).\n"
1362 "\t-p\tPrint the date and time."
1368 #if defined BB_READLINK
1369 #if defined USAGE_ENUM
1370 readlink_usage_index
1371 #elif defined USAGE_MESSAGES
1373 #ifndef BB_FEATURE_TRIVIAL_HELP
1374 "\n\nRead a symbolic link."
1380 #if defined BB_REBOOT
1381 #if defined USAGE_ENUM
1383 #elif defined USAGE_MESSAGES
1385 #ifndef BB_FEATURE_TRIVIAL_HELP
1386 "\n\nReboot the system."
1392 #if defined BB_RENICE
1393 #if defined USAGE_ENUM
1395 #elif defined USAGE_MESSAGES
1396 "priority pid [pid ...]"
1397 #ifndef BB_FEATURE_TRIVIAL_HELP
1398 "\n\nChanges priority of running processes. Allowed priorities range\n"
1399 "from 20 (the process runs only when nothing else is running) to 0\n"
1400 "(default priority) to -20 (almost nothing else ever gets to run)."
1407 #if defined BB_RESET
1408 #if defined USAGE_ENUM
1410 #elif defined USAGE_MESSAGES
1412 #ifndef BB_FEATURE_TRIVIAL_HELP
1413 "\n\nResets the screen."
1420 #if defined USAGE_ENUM
1422 #elif defined USAGE_MESSAGES
1423 "[OPTION]... FILE..."
1424 #ifndef BB_FEATURE_TRIVIAL_HELP
1425 "\n\nRemove (unlink) the FILE(s). You may use '--' to\n"
1426 "indicate that all following arguments are non-options.\n\n"
1428 "\t-f\t\tremove existing destinations, never prompt\n"
1429 "\t-r or -R\tremove the contents of directories recursively"
1435 #if defined BB_RMDIR
1436 #if defined USAGE_ENUM
1438 #elif defined USAGE_MESSAGES
1439 "[OPTION]... DIRECTORY..."
1440 #ifndef BB_FEATURE_TRIVIAL_HELP
1441 "\n\nRemove the DIRECTORY(ies), if they are empty."
1447 #if defined BB_RMMOD
1448 #if defined USAGE_ENUM
1450 #elif defined USAGE_MESSAGES
1451 "[OPTION]... [MODULE]..."
1452 #ifndef BB_FEATURE_TRIVIAL_HELP
1453 "\n\nUnloads the specified kernel modules from the kernel.\n\n"
1455 "\t-a\tTry to remove all unused kernel modules."
1461 #if defined BB_ROUTE
1462 #if defined USAGE_ENUM
1464 #elif defined USAGE_MESSAGES
1466 #ifndef BB_FEATURE_TRIVIAL_HELP
1467 "\n\nEdit the kernel's routing tables"
1473 #if defined BB_RPMUNPACK
1474 #if defined USAGE_ENUM
1475 rpmunpack_usage_index
1476 #elif defined USAGE_MESSAGES
1477 "< package.rpm | gunzip | cpio -idmuv"
1478 #ifndef BB_FEATURE_TRIVIAL_HELP
1479 "\n\nExtracts an rpm archive."
1486 #if defined USAGE_ENUM
1488 #elif defined USAGE_MESSAGES
1489 "[-Vhnef] pattern [files...]"
1490 #ifndef BB_FEATURE_TRIVIAL_HELP
1492 "-n\t\tsuppress automatic printing of pattern space\n"
1493 "-e script\tadd the script to the commands to be executed\n"
1494 "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
1495 "-h\t\tdisplay this help message\n"
1497 "If no -e or -f is given, the first non-option argument is taken as the\n"
1498 "sed script to interpret. All remaining arguments are names of input\n"
1499 "files; if no input files are specified, then the standard input is read."
1505 #if defined BB_SETKEYCODES
1506 #if defined USAGE_ENUM
1507 setkeycodes_usage_index
1508 #elif defined USAGE_MESSAGES
1509 "SCANCODE KEYCODE ..."
1510 #ifndef BB_FEATURE_TRIVIAL_HELP
1511 "\n\nSet entries into the kernel's scancode-to-keycode map,\n"
1512 "allowing unusual keyboards to generate usable keycodes.\n\n"
1513 "SCANCODE may be either xx or e0xx (hexadecimal),\n"
1514 "and KEYCODE is given in decimal"
1521 #if defined USAGE_ENUM
1523 #elif defined USAGE_MESSAGES
1525 " or: sh -c command [args]..."
1526 #ifndef BB_FEATURE_TRIVIAL_HELP
1527 "\n\nlash: The BusyBox command interpreter (shell)."
1533 #if defined BB_SLEEP
1534 #if defined USAGE_ENUM
1536 #elif defined USAGE_MESSAGES
1538 #ifndef BB_FEATURE_TRIVIAL_HELP
1539 "\n\nPause for N seconds."
1546 #if defined USAGE_ENUM
1548 #elif defined USAGE_MESSAGES
1550 #ifdef BB_FEATURE_SORT_REVERSE
1554 #ifndef BB_FEATURE_TRIVIAL_HELP
1555 "\n\nSorts lines of text in the specified files"
1562 #if defined USAGE_ENUM
1564 #elif defined USAGE_MESSAGES
1565 "stty [-a|g] [-F device] [SETTING]..."
1566 #ifndef BB_FEATURE_TRIVIAL_HELP
1567 "\n\nWithout arguments, prints baud rate, line discipline,"
1568 "\nand deviations from stty sane."
1569 "\n -F device open and use the specified device instead of stdin"
1570 "\n -a print all current settings in human-readable form. Or"
1571 "\n -g print in a stty-readable form"
1572 "\n [SETTING] see in documentation"
1578 #if defined BB_SWAPONOFF
1579 #if defined USAGE_ENUM
1581 #elif defined USAGE_MESSAGES
1583 #ifndef BB_FEATURE_TRIVIAL_HELP
1584 "\n\nStop swapping virtual memory pages on the given device.\n\n"
1586 "\t-a\tStop swapping on all swap devices"
1592 #if defined BB_SWAPONOFF
1593 #if defined USAGE_ENUM
1595 #elif defined USAGE_MESSAGES
1597 #ifndef BB_FEATURE_TRIVIAL_HELP
1598 "\n\nStart swapping virtual memory pages on the given device.\n\n"
1600 "\t-a\tStart swapping on all swap devices"
1607 #if defined USAGE_ENUM
1609 #elif defined USAGE_MESSAGES
1611 #ifndef BB_FEATURE_TRIVIAL_HELP
1612 "\n\nWrite all buffered filesystem blocks to disk."
1618 #if defined BB_SYSLOGD
1619 #if defined USAGE_ENUM
1621 #elif defined USAGE_MESSAGES
1623 #ifndef BB_FEATURE_TRIVIAL_HELP
1624 "\n\nLinux system and kernel (provides klogd) logging utility.\n"
1625 "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
1627 "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
1628 "\t-n\t\tRun as a foreground process\n"
1629 #ifdef BB_FEATURE_KLOGD
1630 "\t-K\t\tDo not start up the klogd process\n"
1632 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)"
1633 #ifdef BB_FEATURE_REMOTE_LOG
1634 "\n\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
1635 "\t-L\t\tLog locally as well as network logging (default is network only)"
1643 #if defined USAGE_ENUM
1645 #elif defined USAGE_MESSAGES
1646 "[OPTION]... [FILE]..."
1647 #ifndef BB_FEATURE_TRIVIAL_HELP
1648 "\n\nPrint last 10 lines of each FILE to standard output.\n"
1649 "With more than one FILE, precede each with a header giving the\n"
1650 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
1652 #ifndef BB_FEATURE_SIMPLE_TAIL
1653 "\t-c N[kbm]\toutput the last N bytes\n"
1655 "\t-n N[kbm]\tprint last N lines instead of last 10\n"
1656 "\t-f\t\toutput data as the file grows"
1657 #ifndef BB_FEATURE_SIMPLE_TAIL
1658 "\n\t-q\t\tnever output headers giving file names\n"
1659 "\t-s SEC\t\twait SEC seconds between reads with -f\n"
1660 "\t-v\t\talways output headers giving file names\n\n"
1661 "If the first character of N (bytes or lines) is a `+', output begins with \n"
1662 "the Nth item from the start of each file, otherwise, print the last N items\n"
1663 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)."
1665 // "\nIf the first character of N (bytes or lines) is a `+', output begins with \n"
1666 // "the Nth item from the start of each file."
1674 #if defined USAGE_ENUM
1676 #elif defined USAGE_MESSAGES
1677 #ifdef BB_FEATURE_TAR_CREATE
1682 #if defined BB_FEATURE_TAR_EXCLUDE
1686 "[-f tarFile] [FILE(s)] ..."
1687 #ifndef BB_FEATURE_TRIVIAL_HELP
1688 "\n\nCreate, extract, or list files from a tar file.\n\n"
1689 "Main operation mode:\n"
1690 #ifdef BB_FEATURE_TAR_CREATE
1695 "\nFile selection:\n"
1696 "\tf\t\tname of tarfile or \"-\" for stdin\n"
1697 "\tO\t\textract to stdout\n"
1698 #if defined BB_FEATURE_TAR_EXCLUDE
1699 "\texclude\t\tfile to exclude\n"
1700 "\tX\t\tfile with names to exclude\n"
1702 "\nInformative output:\n"
1703 "\tv\t\tverbosely list files processed"
1710 #if defined USAGE_ENUM
1712 #elif defined USAGE_MESSAGES
1713 "[OPTION]... [FILE]..."
1714 #ifndef BB_FEATURE_TRIVIAL_HELP
1715 "\n\nCopy standard input to each FILE, and also to standard output.\n\n"
1716 "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite"
1722 #if defined BB_TELNET
1723 #if defined USAGE_ENUM
1725 #elif defined USAGE_MESSAGES
1727 #ifndef BB_FEATURE_TRIVIAL_HELP
1728 "\n\nTelnet is used to establish interactive communication with another\n"
1729 "computer over a network using the TELNET protocol."
1736 #if defined USAGE_ENUM
1738 #elif defined USAGE_MESSAGES
1739 "\ntest EXPRESSION\n"
1741 #ifndef BB_FEATURE_TRIVIAL_HELP
1742 "\n\nChecks file types and compares values returning an exit\n"
1743 "code determined by the value of EXPRESSION."
1749 #if defined BB_TOUCH
1750 #if defined USAGE_ENUM
1752 #elif defined USAGE_MESSAGES
1753 "[-c] file [file ...]"
1754 #ifndef BB_FEATURE_TRIVIAL_HELP
1755 "\n\nUpdate the last-modified date on the given file[s].\n\n"
1757 "\t-c\tDo not create any files"
1764 #if defined USAGE_ENUM
1766 #elif defined USAGE_MESSAGES
1767 "[-cds] STRING1 [STRING2]"
1768 #ifndef BB_FEATURE_TRIVIAL_HELP
1769 "\n\nTranslate, squeeze, and/or delete characters from\n"
1770 "standard input, writing to standard output.\n\n"
1772 "\t-c\ttake complement of STRING1\n"
1773 "\t-d\tdelete input characters coded STRING1\n"
1774 "\t-s\tsqueeze multiple output characters of STRING2 into one character"
1780 #if defined BB_TRUE_FALSE
1781 #if defined USAGE_ENUM
1783 #elif defined USAGE_MESSAGES
1785 #ifndef BB_FEATURE_TRIVIAL_HELP
1786 "\n\nReturn an exit code of TRUE (0)."
1793 #if defined USAGE_ENUM
1795 #elif defined USAGE_MESSAGES
1797 #ifndef BB_FEATURE_TRIVIAL_HELP
1798 "\n\nPrint the file name of the terminal connected to standard input.\n\n"
1800 "\t-s\tprint nothing, only return an exit status"
1806 #if defined BB_UMOUNT
1807 #if defined USAGE_ENUM
1809 #elif defined USAGE_MESSAGES
1810 "[flags] filesystem|directory"
1811 #ifndef BB_FEATURE_TRIVIAL_HELP
1812 "\nUnmount file systems\n"
1813 "\nFlags:\n" "\t-a:\tUnmount all file systems"
1815 " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1819 "\t-r:\tTry to remount devices as read-only if mount is busy"
1820 #if defined BB_FEATURE_MOUNT_FORCE
1821 "\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)"
1823 #if defined BB_FEATURE_MOUNT_LOOP
1824 "\n\t-l:\tDo not free loop device (if a loop device has been used)"
1831 #if defined BB_UNAME
1832 #if defined USAGE_ENUM
1834 #elif defined USAGE_MESSAGES
1836 #ifndef BB_FEATURE_TRIVIAL_HELP
1837 "\n\nPrint certain system information. With no OPTION, same as -s.\n\n"
1839 "\t-a\tprint all information\n"
1840 "\t-m\tthe machine (hardware) type\n"
1841 "\t-n\tprint the machine's network node hostname\n"
1842 "\t-r\tprint the operating system release\n"
1843 "\t-s\tprint the operating system name\n"
1845 "\t-p\tprint the host processor type\n"
1846 "\t-v\tprint the operating system version"
1853 #if defined USAGE_ENUM
1855 #elif defined USAGE_MESSAGES
1856 "[OPTION]... [INPUT [OUTPUT]]"
1857 #ifndef BB_FEATURE_TRIVIAL_HELP
1858 "\n\nDiscard all but one of successive identical lines from INPUT\n"
1859 "(or standard input), writing to OUTPUT (or standard output).\n"
1861 "\t-c\tprefix lines by the number of occurrences\n"
1862 "\t-d\tonly print duplicate lines\n"
1863 "\t-u\tonly print unique lines"
1869 #if defined BB_UNIX2DOS
1870 #if defined USAGE_ENUM
1871 unix2dos_usage_index
1872 #elif defined USAGE_MESSAGES
1873 "< unixfile > dosfile"
1874 #ifndef BB_FEATURE_TRIVIAL_HELP
1875 "\n\nConverts a text file from unix format to dos format."
1881 #if defined BB_UPDATE
1882 #if defined USAGE_ENUM
1884 #elif defined USAGE_MESSAGES
1886 #ifndef BB_FEATURE_TRIVIAL_HELP
1887 "\n\nPeriodically flushes filesystem buffers.\n\n"
1889 "\t-S\tforce use of sync(2) instead of flushing\n"
1890 "\t-s SECS\tcall sync this often (default 30)\n"
1891 "\t-f SECS\tflush some buffers this often (default 5)"
1897 #if defined BB_UPTIME
1898 #if defined USAGE_ENUM
1900 #elif defined USAGE_MESSAGES
1902 #ifndef BB_FEATURE_TRIVIAL_HELP
1903 "\n\nDisplay the time since the last boot."
1909 #if defined BB_USLEEP
1910 #if defined USAGE_ENUM
1912 #elif defined USAGE_MESSAGES
1914 #ifndef BB_FEATURE_TRIVIAL_HELP
1915 "\n\nPause for N microseconds."
1921 #if defined BB_UUDECODE
1922 #if defined USAGE_ENUM
1923 uudecode_usage_index
1924 #elif defined USAGE_MESSAGES
1926 #ifndef BB_FEATURE_TRIVIAL_HELP
1927 "\n\nUudecode a file that is uuencoded.\n\n"
1929 "\t-o FILE\tdirect output to FILE"
1935 #if defined BB_UUENCODE
1936 #if defined USAGE_ENUM
1937 uuencode_usage_index
1938 #elif defined USAGE_MESSAGES
1939 "[OPTION] [INFILE] REMOTEFILE"
1940 #ifndef BB_FEATURE_TRIVIAL_HELP
1941 "\n\nUuencode a file.\n\n"
1943 "\t-m\tuse base64 encoding as of RFC1521"
1949 #if defined BB_WATCHDOG
1950 #if defined USAGE_ENUM
1951 watchdog_usage_index
1952 #elif defined USAGE_MESSAGES
1954 #ifndef BB_FEATURE_TRIVIAL_HELP
1955 "\n\nPeriodically write to watchdog device \"dev\""
1962 #if defined USAGE_ENUM
1964 #elif defined USAGE_MESSAGES
1965 "[OPTION]... [FILE]..."
1966 #ifndef BB_FEATURE_TRIVIAL_HELP
1967 "\n\nPrint line, word, and byte counts for each FILE, and a total line if\n"
1968 "more than one FILE is specified. With no FILE, read standard input.\n\n"
1970 "\t-c\tprint the byte counts\n"
1971 "\t-l\tprint the newline counts\n"
1973 "\t-L\tprint the length of the longest line\n"
1974 "\t-w\tprint the word counts"
1981 #if defined USAGE_ENUM
1983 #elif defined USAGE_MESSAGES
1984 "[-c] [-O file] url"
1985 #ifndef BB_FEATURE_TRIVIAL_HELP
1986 "\n\nwget retrieves files via HTTP\n\n"
1988 "\t-c\tcontinue retrieval of aborted transfers\n"
1989 "\t-O\tsave to filename ('-' for stdout)"
1995 #if defined BB_WHICH
1996 #if defined USAGE_ENUM
1998 #elif defined USAGE_MESSAGES
2000 #ifndef BB_FEATURE_TRIVIAL_HELP
2001 "\n\nLocates a COMMAND."
2007 #if defined BB_WHOAMI
2008 #if defined USAGE_ENUM
2010 #elif defined USAGE_MESSAGES
2012 #ifndef BB_FEATURE_TRIVIAL_HELP
2013 "\n\nPrints the user name associated with the current effective user id."
2019 #if defined BB_XARGS
2020 #if defined USAGE_ENUM
2022 #elif defined USAGE_MESSAGES
2023 "[COMMAND] [ARGS...]"
2024 #ifndef BB_FEATURE_TRIVIAL_HELP
2025 "\n\nExecutes COMMAND on every item given by standard input."
2032 #if defined USAGE_ENUM
2034 #elif defined USAGE_MESSAGES
2035 "[OPTION]... [STRING]..."
2036 #ifndef BB_FEATURE_TRIVIAL_HELP
2037 "\n\nRepeatedly outputs a line with all specified STRING(s), or `y'."
2043 #if defined USAGE_ENUM || defined USAGE_MESSAGES
2049 #undef USAGE_MESSAGES