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)."
477 #if defined BB_FDFLUSH
478 #if defined USAGE_ENUM
480 #elif defined USAGE_MESSAGES
482 #ifndef BB_FEATURE_TRIVIAL_HELP
483 "\n\nForces floppy disk drive to detect disk change"
490 #if defined USAGE_ENUM
492 #elif defined USAGE_MESSAGES
493 "[PATH...] [EXPRESSION]"
494 #ifndef BB_FEATURE_TRIVIAL_HELP
495 "\n\nSearch for files in a directory hierarchy. The default PATH is\n"
496 "the current directory; default EXPRESSION is '-print'\n\n"
497 "\nEXPRESSION may consist of:\n"
498 "\t-follow\t\tDereference symbolic links.\n"
499 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN."
500 #ifdef BB_FEATURE_FIND_TYPE
501 "\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)"
503 #ifdef BB_FEATURE_FIND_PERM
504 "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)"
506 #ifdef BB_FEATURE_FIND_MTIME
507 "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days"
515 #if defined USAGE_ENUM
517 #elif defined USAGE_MESSAGES
519 #ifndef BB_FEATURE_TRIVIAL_HELP
520 "\n\nDisplays the amount of free and used system memory"
526 #if defined BB_FREERAMDISK
527 #if defined USAGE_ENUM
528 freeramdisk_usage_index
529 #elif defined USAGE_MESSAGES
531 #ifndef BB_FEATURE_TRIVIAL_HELP
532 "\n\nFrees all memory used by the specified ramdisk."
538 #if defined BB_FSCK_MINIX
539 #if defined USAGE_ENUM
540 fsck_minix_usage_index
541 #elif defined USAGE_MESSAGES
542 "[-larvsmf] /dev/name"
543 #ifndef BB_FEATURE_TRIVIAL_HELP
544 "\n\nPerforms a consistency check for MINIX filesystems.\n\n"
546 "\t-l\tLists all filenames\n"
547 "\t-r\tPerform interactive repairs\n"
548 "\t-a\tPerform automatic repairs\n"
550 "\t-s\tOutputs super-block information\n"
551 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
552 "\t-f\tForce file system check."
558 #if defined BB_GETOPT
559 #if defined USAGE_ENUM
561 #elif defined USAGE_MESSAGES
563 #ifndef BB_FEATURE_TRIVIAL_HELP
564 "\nParse command options\n"
565 " -a, --alternative Allow long options starting with single -\n"
566 " -l, --longoptions=longopts Long options to be recognized\n"
567 " -n, --name=progname The name under which errors are reported\n"
568 " -o, --options=optstring Short options to be recognized\n"
569 " -q, --quiet Disable error reporting by getopt(3)\n"
570 " -Q, --quiet-output No normal output\n"
571 " -s, --shell=shell Set shell quoting conventions\n"
572 " -T, --test Test for getopt(1) version\n"
573 " -u, --unqote Do not quote the output"
580 #if defined USAGE_ENUM
582 #elif defined USAGE_MESSAGES
583 "[-ihHnqvs] pattern [files...]"
584 #ifndef BB_FEATURE_TRIVIAL_HELP
585 "\n\nSearch for PATTERN in each FILE or standard input.\n\n"
587 "\t-H\tprefix output lines with filename where match was found\n"
588 "\t-h\tsuppress the prefixing filename on output\n"
589 "\t-i\tignore case distinctions\n"
590 "\t-n\tprint line number with output lines\n"
591 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
592 "\t-v\tselect non-matching lines\n"
593 "\t-s\tsuppress file open/read error messages"
599 #if defined BB_GUNZIP
600 #if defined USAGE_ENUM
602 #elif defined USAGE_MESSAGES
604 #ifndef BB_FEATURE_TRIVIAL_HELP
605 "\n\nUncompress FILE (or standard input if FILE is '-').\n\n"
607 "\t-c\tWrite output to standard output\n"
608 "\t-t\tTest compressed file integrity"
615 #if defined USAGE_ENUM
617 #elif defined USAGE_MESSAGES
619 #ifndef BB_FEATURE_TRIVIAL_HELP
620 "\n\nCompress FILE with maximum compression.\n"
621 "When FILE is '-', reads standard input. Implies -c.\n\n"
623 "\t-c\tWrite output to standard output instead of FILE.gz\n"
631 #if defined USAGE_ENUM
633 #elif defined USAGE_MESSAGES
635 #ifndef BB_FEATURE_TRIVIAL_HELP
636 "\n\nHalt the system."
643 #if defined USAGE_ENUM
645 #elif defined USAGE_MESSAGES
647 #ifndef BB_FEATURE_TRIVIAL_HELP
648 "\n\nPrint first 10 lines of each FILE to standard output.\n"
649 "With more than one FILE, precede each with a header giving the\n"
650 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
652 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10"
658 #if defined BB_HOSTID
659 #if defined USAGE_ENUM
661 #elif defined USAGE_MESSAGES
663 #ifndef BB_FEATURE_TRIVIAL_HELP
664 "\n\nPrint out a unique 32-bit identifier for the machine."
670 #if defined BB_HOSTNAME
671 #if defined USAGE_ENUM
673 #elif defined USAGE_MESSAGES
674 "[OPTION] {hostname | -F file}"
675 #ifndef BB_FEATURE_TRIVIAL_HELP
676 "\n\nGet or set the hostname or DNS domain name. If a hostname is given\n"
677 "(or a file with the -F parameter), the host name will be set.\n\n"
681 "\t-i\t\tAddresses for the hostname\n"
682 "\t-d\t\tDNS domain name\n"
683 "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
690 #if defined USAGE_ENUM
692 #elif defined USAGE_MESSAGES
693 "[OPTIONS]... [USERNAME]"
694 #ifndef BB_FEATURE_TRIVIAL_HELP
695 "\n\nPrint information for USERNAME or the current user\n\n"
697 "\t-g\tprints only the group ID\n"
698 "\t-u\tprints only the user ID\n"
699 "\t-n\tprint a name instead of a number (with for -ug)\n"
700 "\t-r\tprints the real user ID instead of the effective ID (with -ug)"
706 #if defined BB_IFCONFIG
707 #if defined USAGE_ENUM
709 #elif defined USAGE_MESSAGES
710 "[-a] [-i] [-v] <interface> [<address>]"
711 #ifndef BB_FEATURE_TRIVIAL_HELP
712 "\n\nconfigure a network interface\n\n"
714 " [[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n"
715 " [netmask <address>] [dstaddr <address>] [tunnel <adress>]\n"
716 #ifdef SIOCSKEEPALIVE
717 " [outfill <NN>] [keepalive <NN>]\n"
719 " [hw ether <address>] [metric <NN>] [mtu <NN>]\n"
720 " [[-]trailers] [[-]arp] [[-]allmulti]\n"
721 " [multicast] [[-]promisc]\n"
722 " [mem_start <NN>] [io_addr <NN>] [irq <NN>] [media <type>]\n"
730 #if defined USAGE_ENUM
732 #elif defined USAGE_MESSAGES
734 #ifndef BB_FEATURE_TRIVIAL_HELP
735 "\n\nInit is the parent of all processes.\n\n"
736 "This version of init is designed to be run only by the kernel."
742 #if defined BB_INSMOD
743 #if defined USAGE_ENUM
745 #elif defined USAGE_MESSAGES
746 "[OPTION]... MODULE [symbol=value]..."
747 #ifndef BB_FEATURE_TRIVIAL_HELP
748 "\n\nLoads the specified kernel modules into the kernel.\n\n"
750 "\t-f\tForce module to load into the wrong kernel version.\n"
751 "\t-k\tMake module autoclean-able.\n"
752 "\t-v\tverbose output\n"
753 "\t-L\tLock to prevent simultaneous loads of a module\n"
754 "\t-x\tdo not export externs"
761 #if defined USAGE_ENUM
763 #elif defined USAGE_MESSAGES
764 "[-signal] process-id [process-id ...]"
765 #ifndef BB_FEATURE_TRIVIAL_HELP
766 "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
767 "Options:\n" "\t-l\tList all signal names and numbers."
773 #if defined BB_KILLALL
774 #if defined USAGE_ENUM
776 #elif defined USAGE_MESSAGES
777 "[-signal] process-name [process-name ...]"
778 #ifndef BB_FEATURE_TRIVIAL_HELP
779 "\n\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
780 "Options:\n" "\t-l\tList all signal names and numbers."
786 #if defined BB_LENGTH
787 #if defined USAGE_ENUM
789 #elif defined USAGE_MESSAGES
791 #ifndef BB_FEATURE_TRIVIAL_HELP
792 "\n\nPrints out the length of the specified STRING."
799 #if defined USAGE_ENUM
801 #elif defined USAGE_MESSAGES
802 "[OPTION] TARGET... LINK_NAME|DIRECTORY"
803 #ifndef BB_FEATURE_TRIVIAL_HELP
804 "\n\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
805 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
807 "\t-s\tmake symbolic links instead of hard links\n"
808 "\t-f\tremove existing destination files\n"
809 "\t-n\tno dereference symlinks - treat like normal file"
815 #if defined BB_LOADACM
816 #if defined USAGE_ENUM
818 #elif defined USAGE_MESSAGES
820 #ifndef BB_FEATURE_TRIVIAL_HELP
821 "\n\nLoads an acm from standard input."
827 #if defined BB_LOADFONT
828 #if defined USAGE_ENUM
830 #elif defined USAGE_MESSAGES
832 #ifndef BB_FEATURE_TRIVIAL_HELP
833 "\n\nLoads a console font from standard input."
839 #if defined BB_LOADKMAP
840 #if defined USAGE_ENUM
842 #elif defined USAGE_MESSAGES
844 #ifndef BB_FEATURE_TRIVIAL_HELP
845 "\n\nLoads a binary keyboard translation table from standard input."
851 #if defined BB_LOGGER
852 #if defined USAGE_ENUM
854 #elif defined USAGE_MESSAGES
855 "[OPTION]... [MESSAGE]"
856 #ifndef BB_FEATURE_TRIVIAL_HELP
857 "\n\nWrite MESSAGE to the system log. If MESSAGE is omitted, log stdin.\n\n"
859 "\t-s\tLog to stderr as well as the system log.\n"
860 "\t-t\tLog using the specified tag (defaults to user name).\n"
861 "\t-p\tEnter the message with the specified priority.\n"
862 "\t\tThis may be numerical or a ``facility.level'' pair."
868 #if defined BB_LOGNAME
869 #if defined USAGE_ENUM
871 #elif defined USAGE_MESSAGES
873 #ifndef BB_FEATURE_TRIVIAL_HELP
874 "\n\nPrint the name of the current user."
881 #if defined USAGE_ENUM
883 #elif defined USAGE_MESSAGES
885 #ifdef BB_FEATURE_LS_TIMESTAMPS
889 #ifdef BB_FEATURE_LS_TIMESTAMPS
892 #ifdef BB_FEATURE_LS_FILETYPES
896 #ifdef BB_FEATURE_LS_FILETYPES
899 #ifdef BB_FEATURE_LS_FOLLOWLINKS
902 #ifdef BB_FEATURE_LS_RECURSIVE
905 #ifdef BB_FEATURE_LS_SORTFILES
909 #ifdef BB_FEATURE_AUTOWIDTH
912 #ifdef BB_FEATURE_LS_TIMESTAMPS
915 #ifdef BB_FEATURE_LS_SORTFILES
918 #ifdef BB_FEATURE_AUTOWIDTH
922 #ifdef BB_FEATURE_LS_SORTFILES
925 #ifdef BB_FEATURE_HUMAN_READABLE
929 #ifndef BB_FEATURE_TRIVIAL_HELP
930 "\n\nList directory contents\n\n"
932 "\t-1\tlist files in a single column\n"
933 "\t-A\tdo not list implied . and ..\n"
934 "\t-a\tdo not hide entries starting with .\n"
935 "\t-C\tlist entries by columns\n"
936 #ifdef BB_FEATURE_LS_TIMESTAMPS
937 "\t-c\twith -l: show ctime (the time of last\n"
938 "\t\tmodification of file status information)\n"
940 "\t-d\tlist directory entries instead of contents\n"
941 #ifdef BB_FEATURE_LS_TIMESTAMPS
942 "\t-e\tlist both full date and full time\n"
944 #ifdef BB_FEATURE_LS_FILETYPES
945 "\t-F\tappend indicator (one of */=@|) to entries\n"
947 "\t-i\tlist the i-node for each file\n"
948 "\t-l\tuse a long listing format\n"
949 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
950 #ifdef BB_FEATURE_LS_FILETYPES
951 "\t-p\tappend indicator (one of /=@|) to entries\n"
953 #ifdef BB_FEATURE_LS_FOLLOWLINKS
954 "\t-L\tlist entries pointed to by symbolic links\n"
956 #ifdef BB_FEATURE_LS_RECURSIVE
957 "\t-R\tlist subdirectories recursively\n"
959 #ifdef BB_FEATURE_LS_SORTFILES
960 "\t-r\tsort the listing in reverse order\n"
961 "\t-S\tsort the listing by file size\n"
963 "\t-s\tlist the size of each file, in blocks\n"
964 #ifdef BB_FEATURE_AUTOWIDTH
965 "\t-T NUM\tassume Tabstop every NUM columns\n"
967 #ifdef BB_FEATURE_LS_TIMESTAMPS
968 "\t-t\twith -l: show modification time (the time of last\n"
969 "\t\tchange of the file)\n"
970 "\t-u\twith -l: show access time (the time of last\n"
971 "\t\taccess of the file)\n"
973 #ifdef BB_FEATURE_LS_SORTFILES
974 "\t-v\tsort the listing by version\n"
976 #ifdef BB_FEATURE_AUTOWIDTH
977 "\t-w NUM\tassume the terminal is NUM columns wide\n"
979 "\t-x\tlist entries by lines instead of by columns\n"
980 #ifdef BB_FEATURE_LS_SORTFILES
981 "\t-X\tsort the listing by extension\n"
984 #ifdef BB_FEATURE_HUMAN_READABLE
985 "\t-h\tprint sizes in human readable format (e.g., 1K 243M 2G )\n"
986 "\t-k\tprint sizes in kilobytes(default)"
988 "\t-k\tprint sizes in kilobytes(compatability)"
991 #endif /* BB_FEATURE_TRIVIAL_HELP */
997 #if defined USAGE_ENUM
999 #elif defined USAGE_MESSAGES
1001 #ifndef BB_FEATURE_TRIVIAL_HELP
1002 "\n\nList the currently loaded kernel modules."
1008 #if defined BB_MAKEDEVS
1009 #if defined USAGE_ENUM
1010 makedevs_usage_index
1011 #elif defined USAGE_MESSAGES
1012 "NAME TYPE MAJOR MINOR FIRST LAST [s]"
1013 #ifndef BB_FEATURE_TRIVIAL_HELP
1014 "\n\nCreates a range of block or character special files\n\n"
1016 "\tb:\tMake a block (buffered) device.\n"
1017 "\tc or u:\tMake a character (un-buffered) device.\n"
1018 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
1019 "FIRST specifies the number appended to NAME to create the first device.\n"
1020 "LAST specifies the number of the last item that should be created.\n"
1021 "If 's' is the last argument, the base device is created as well.\n\n"
1023 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
1024 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8"
1030 #if defined BB_MD5SUM
1031 #if defined USAGE_ENUM
1033 #elif defined USAGE_MESSAGES
1034 "[OPTION] [FILE]...\n"
1035 "or: md5sum [OPTION] -c [FILE]"
1036 #ifndef BB_FEATURE_TRIVIAL_HELP
1037 "\n\nPrint or check MD5 checksums.\n\n"
1039 "With no FILE, or when FILE is -, read standard input.\n\n"
1040 "\t-b\tread files in binary mode\n"
1041 "\t-c\tcheck MD5 sums against given list\n"
1042 "\t-t\tread files in text mode (default)\n"
1043 "\t-g\tread a string\n"
1044 "\nThe following two options are useful only when verifying checksums:\n"
1045 "\t-s,\tdon't output anything, status code shows success\n"
1046 "\t-w,\twarn about improperly formated MD5 checksum lines"
1052 #if defined BB_MKDIR
1053 #if defined USAGE_ENUM
1055 #elif defined USAGE_MESSAGES
1056 "[OPTION] DIRECTORY..."
1057 #ifndef BB_FEATURE_TRIVIAL_HELP
1058 "\n\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
1061 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
1062 "\t-p\tno error if existing, make parent directories as needed"
1068 #if defined BB_MKFIFO
1069 #if defined USAGE_ENUM
1071 #elif defined USAGE_MESSAGES
1073 #ifndef BB_FEATURE_TRIVIAL_HELP
1074 "\n\nCreates a named pipe (identical to 'mknod name p')\n\n"
1076 "\t-m\tcreate the pipe using the specified mode (default a=rw)"
1082 #if defined BB_MKFS_MINIX
1083 #if defined USAGE_ENUM
1084 mkfs_minix_usage_index
1085 #elif defined USAGE_MESSAGES
1086 "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]"
1087 #ifndef BB_FEATURE_TRIVIAL_HELP
1088 "\n\nMake a MINIX filesystem.\n\n"
1090 "\t-c\t\tCheck the device for bad blocks\n"
1091 "\t-n [14|30]\tSpecify the maximum length of filenames\n"
1092 "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
1093 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
1094 "\t-v\t\tMake a Minix version 2 filesystem"
1100 #if defined BB_MKNOD
1101 #if defined USAGE_ENUM
1103 #elif defined USAGE_MESSAGES
1104 "[OPTIONS] NAME TYPE MAJOR MINOR"
1105 #ifndef BB_FEATURE_TRIVIAL_HELP
1106 "\n\nCreate a special file (block, character, or pipe).\n\n"
1108 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
1110 "\tb:\tMake a block (buffered) device.\n"
1111 "\tc or u:\tMake a character (un-buffered) device.\n"
1112 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
1118 #if defined BB_MKSWAP
1119 #if defined USAGE_ENUM
1121 #elif defined USAGE_MESSAGES
1122 "[-c] [-v0|-v1] device [block-count]"
1123 #ifndef BB_FEATURE_TRIVIAL_HELP
1124 "\n\nPrepare a disk partition to be used as a swap partition.\n\n"
1125 "Options:\n" "\t-c\t\tCheck for read-ability.\n"
1126 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
1127 "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
1128 "\tblock-count\tNumber of block to use (default is entire partition)."
1134 #if defined BB_MKTEMP
1135 #if defined USAGE_ENUM
1137 #elif defined USAGE_MESSAGES
1139 #ifndef BB_FEATURE_TRIVIAL_HELP
1140 "\n\nCreates a temporary file with its name based on TEMPLATE.\n"
1141 "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX)."
1148 #if defined USAGE_ENUM
1150 #elif defined USAGE_MESSAGES
1152 #ifndef BB_FEATURE_TRIVIAL_HELP
1153 "\n\nMore is a filter for viewing FILE one screenful at a time."
1159 #if defined BB_MOUNT
1160 #if defined USAGE_ENUM
1162 #elif defined USAGE_MESSAGES
1163 "[flags] device directory [-o options,more-options]"
1164 #ifndef BB_FEATURE_TRIVIAL_HELP
1165 "\n\nMount a filesystem\n\n"
1167 "\t-a:\t\tMount all filesystems in fstab.\n"
1169 "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
1170 "\t-n:\t\tDon't write a mount table entry.\n"
1172 "\t-o option:\tOne of many filesystem options, listed below.\n"
1173 "\t-r:\t\tMount the filesystem read-only.\n"
1174 "\t-t fs-type:\tSpecify the filesystem type.\n"
1175 "\t-w:\t\tMount for reading and writing (default).\n"
1177 "Options for use with the \"-o\" flag:\n"
1178 "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
1179 "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
1180 "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
1181 "\texec/noexec:\tAllow use of executable files / disallow them.\n"
1182 #if defined BB_FEATURE_MOUNT_LOOP
1183 "\tloop:\t\tMounts a file via loop device.\n"
1185 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
1186 "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
1187 "\tro/rw:\t\tMount for read-only / read-write.\n"
1188 "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
1189 "You'll have to see the written documentation for those."
1196 #if defined USAGE_ENUM
1198 #elif defined USAGE_MESSAGES
1199 "[-f device] opcode value"
1200 #ifndef BB_FEATURE_TRIVIAL_HELP
1201 "\n\nControl magnetic tape drive operation\n"
1202 "\nAvailable Opcodes:\n\n"
1203 "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n"
1204 "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n"
1205 "ras3 reset retension rew rewoffline seek setblk setdensity\n"
1206 "setpart tell unload unlock weof wset"
1212 #if defined BB_CP_MV
1213 #if defined USAGE_ENUM
1215 #elif defined USAGE_MESSAGES
1217 " or: mv SOURCE... DIRECTORY"
1218 #ifndef BB_FEATURE_TRIVIAL_HELP
1219 "\n\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY."
1226 #if defined USAGE_ENUM
1228 #elif defined USAGE_MESSAGES
1230 #ifndef BB_FEATURE_TRIVIAL_HELP
1231 "\n\nNetcat opens a pipe to IP:port"
1237 #if defined BB_NSLOOKUP
1238 #if defined USAGE_ENUM
1239 nslookup_usage_index
1240 #elif defined USAGE_MESSAGES
1242 #ifndef BB_FEATURE_TRIVIAL_HELP
1243 "\n\nQueries the nameserver for the IP address of the given HOST"
1250 #if defined BB_FEATURE_SIMPLE_PING
1251 #if defined USAGE_ENUM
1253 #elif defined USAGE_MESSAGES
1255 #ifndef BB_FEATURE_TRIVIAL_HELP
1256 "\n\nSend ICMP ECHO_REQUEST packets to network hosts"
1260 #else /* ! defined BB_FEATURE_SIMPLE_PING */
1261 #if defined USAGE_ENUM
1263 #elif defined USAGE_MESSAGES
1265 #ifndef BB_FEATURE_TRIVIAL_HELP
1266 "\n\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
1268 "\t-c COUNT\tSend only COUNT pings.\n"
1269 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
1270 "\t-q\t\tQuiet mode, only displays output at start\n"
1271 "\t\t\tand when finished."
1278 #if defined BB_PIVOT_ROOT
1279 #if defined USAGE_ENUM
1280 pivot_root_usage_index
1281 #elif defined USAGE_MESSAGES
1283 #ifndef BB_FEATURE_TRIVIAL_HELP
1284 "\n\nMove the current root file system to put_old and make new_root\n"
1285 "the new root file system."
1291 #if defined BB_POWEROFF
1292 #if defined USAGE_ENUM
1293 poweroff_usage_index
1294 #elif defined USAGE_MESSAGES
1296 #ifndef BB_FEATURE_TRIVIAL_HELP
1297 "\n\nHalt the system and request that the kernel shut off the power."
1303 #if defined BB_PRINTF
1304 #if defined USAGE_ENUM
1306 #elif defined USAGE_MESSAGES
1307 "FORMAT [ARGUMENT...]"
1308 #ifndef BB_FEATURE_TRIVIAL_HELP
1309 "\n\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
1310 "Where FORMAT controls the output exactly as in C printf."
1317 #if defined USAGE_ENUM
1319 #elif defined USAGE_MESSAGES
1321 #ifndef BB_FEATURE_TRIVIAL_HELP
1322 "\n\nReport process status\n"
1323 "\nThis version of ps accepts no options."
1330 #if defined USAGE_ENUM
1332 #elif defined USAGE_MESSAGES
1334 #ifndef BB_FEATURE_TRIVIAL_HELP
1335 "\n\nPrint the full filename of the current working directory."
1341 #if defined BB_RDATE
1342 #if defined USAGE_ENUM
1344 #elif defined USAGE_MESSAGES
1346 #ifndef BB_FEATURE_TRIVIAL_HELP
1347 "\n\nGet and possibly set the system date and time from a remote HOST.\n"
1349 "\t-s\tSet the system date and time (default).\n"
1350 "\t-p\tPrint the date and time."
1356 #if defined BB_READLINK
1357 #if defined USAGE_ENUM
1358 readlink_usage_index
1359 #elif defined USAGE_MESSAGES
1361 #ifndef BB_FEATURE_TRIVIAL_HELP
1362 "\n\nRead a symbolic link."
1368 #if defined BB_REBOOT
1369 #if defined USAGE_ENUM
1371 #elif defined USAGE_MESSAGES
1373 #ifndef BB_FEATURE_TRIVIAL_HELP
1374 "\n\nReboot the system."
1380 #if defined BB_RENICE
1381 #if defined USAGE_ENUM
1383 #elif defined USAGE_MESSAGES
1384 "priority pid [pid ...]"
1385 #ifndef BB_FEATURE_TRIVIAL_HELP
1386 "\n\nChanges priority of running processes. Allowed priorities range\n"
1387 "from 20 (the process runs only when nothing else is running) to 0\n"
1388 "(default priority) to -20 (almost nothing else ever gets to run)."
1395 #if defined BB_RESET
1396 #if defined USAGE_ENUM
1398 #elif defined USAGE_MESSAGES
1400 #ifndef BB_FEATURE_TRIVIAL_HELP
1401 "\n\nResets the screen."
1408 #if defined USAGE_ENUM
1410 #elif defined USAGE_MESSAGES
1411 "[OPTION]... FILE..."
1412 #ifndef BB_FEATURE_TRIVIAL_HELP
1413 "\n\nRemove (unlink) the FILE(s). You may use '--' to\n"
1414 "indicate that all following arguments are non-options.\n\n"
1416 "\t-f\t\tremove existing destinations, never prompt\n"
1417 "\t-r or -R\tremove the contents of directories recursively"
1423 #if defined BB_RMDIR
1424 #if defined USAGE_ENUM
1426 #elif defined USAGE_MESSAGES
1427 "[OPTION]... DIRECTORY..."
1428 #ifndef BB_FEATURE_TRIVIAL_HELP
1429 "\n\nRemove the DIRECTORY(ies), if they are empty."
1435 #if defined BB_RMMOD
1436 #if defined USAGE_ENUM
1438 #elif defined USAGE_MESSAGES
1439 "[OPTION]... [MODULE]..."
1440 #ifndef BB_FEATURE_TRIVIAL_HELP
1441 "\n\nUnloads the specified kernel modules from the kernel.\n\n"
1443 "\t-a\tTry to remove all unused kernel modules."
1449 #if defined BB_ROUTE
1450 #if defined USAGE_ENUM
1452 #elif defined USAGE_MESSAGES
1454 #ifndef BB_FEATURE_TRIVIAL_HELP
1455 "\n\nEdit the kernel's routing tables"
1461 #if defined BB_RPMUNPACK
1462 #if defined USAGE_ENUM
1463 rpmunpack_usage_index
1464 #elif defined USAGE_MESSAGES
1465 "< package.rpm | gunzip | cpio -idmuv"
1466 #ifndef BB_FEATURE_TRIVIAL_HELP
1467 "\n\nExtracts an rpm archive."
1474 #if defined USAGE_ENUM
1476 #elif defined USAGE_MESSAGES
1477 "[-Vhnef] pattern [files...]"
1478 #ifndef BB_FEATURE_TRIVIAL_HELP
1480 "-n\t\tsuppress automatic printing of pattern space\n"
1481 "-e script\tadd the script to the commands to be executed\n"
1482 "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
1483 "-h\t\tdisplay this help message\n"
1485 "If no -e or -f is given, the first non-option argument is taken as the\n"
1486 "sed script to interpret. All remaining arguments are names of input\n"
1487 "files; if no input files are specified, then the standard input is read."
1493 #if defined BB_SETKEYCODES
1494 #if defined USAGE_ENUM
1495 setkeycodes_usage_index
1496 #elif defined USAGE_MESSAGES
1497 "SCANCODE KEYCODE ..."
1498 #ifndef BB_FEATURE_TRIVIAL_HELP
1499 "\n\nSet entries into the kernel's scancode-to-keycode map,\n"
1500 "allowing unusual keyboards to generate usable keycodes.\n\n"
1501 "SCANCODE may be either xx or e0xx (hexadecimal),\n"
1502 "and KEYCODE is given in decimal"
1509 #if defined USAGE_ENUM
1511 #elif defined USAGE_MESSAGES
1513 " or: sh -c command [args]..."
1514 #ifndef BB_FEATURE_TRIVIAL_HELP
1515 "\n\nlash: The BusyBox command interpreter (shell)."
1521 #if defined BB_SLEEP
1522 #if defined USAGE_ENUM
1524 #elif defined USAGE_MESSAGES
1526 #ifndef BB_FEATURE_TRIVIAL_HELP
1527 "\n\nPause for N seconds."
1534 #if defined USAGE_ENUM
1536 #elif defined USAGE_MESSAGES
1538 #ifdef BB_FEATURE_SORT_REVERSE
1542 #ifndef BB_FEATURE_TRIVIAL_HELP
1543 "\n\nSorts lines of text in the specified files"
1550 #if defined USAGE_ENUM
1552 #elif defined USAGE_MESSAGES
1553 "stty [-a|g] [-F device] [SETTING]..."
1554 #ifndef BB_FEATURE_TRIVIAL_HELP
1555 "\n\nWithout arguments, prints baud rate, line discipline,"
1556 "\nand deviations from stty sane."
1557 "\n -F device open and use the specified device instead of stdin"
1558 "\n -a print all current settings in human-readable form. Or"
1559 "\n -g print in a stty-readable form"
1560 "\n [SETTING] see in documentation"
1566 #if defined BB_SWAPONOFF
1567 #if defined USAGE_ENUM
1569 #elif defined USAGE_MESSAGES
1571 #ifndef BB_FEATURE_TRIVIAL_HELP
1572 "\n\nStop swapping virtual memory pages on the given device.\n\n"
1574 "\t-a\tStop swapping on all swap devices"
1580 #if defined BB_SWAPONOFF
1581 #if defined USAGE_ENUM
1583 #elif defined USAGE_MESSAGES
1585 #ifndef BB_FEATURE_TRIVIAL_HELP
1586 "\n\nStart swapping virtual memory pages on the given device.\n\n"
1588 "\t-a\tStart swapping on all swap devices"
1595 #if defined USAGE_ENUM
1597 #elif defined USAGE_MESSAGES
1599 #ifndef BB_FEATURE_TRIVIAL_HELP
1600 "\n\nWrite all buffered filesystem blocks to disk."
1606 #if defined BB_SYSLOGD
1607 #if defined USAGE_ENUM
1609 #elif defined USAGE_MESSAGES
1611 #ifndef BB_FEATURE_TRIVIAL_HELP
1612 "\n\nLinux system and kernel (provides klogd) logging utility.\n"
1613 "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
1615 "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
1616 "\t-n\t\tRun as a foreground process\n"
1617 #ifdef BB_FEATURE_KLOGD
1618 "\t-K\t\tDo not start up the klogd process\n"
1620 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)"
1621 #ifdef BB_FEATURE_REMOTE_LOG
1622 "\n\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
1623 "\t-L\t\tLog locally as well as network logging (default is network only)"
1631 #if defined USAGE_ENUM
1633 #elif defined USAGE_MESSAGES
1634 "[OPTION]... [FILE]..."
1635 #ifndef BB_FEATURE_TRIVIAL_HELP
1636 "\n\nPrint last 10 lines of each FILE to standard output.\n"
1637 "With more than one FILE, precede each with a header giving the\n"
1638 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
1640 #ifndef BB_FEATURE_SIMPLE_TAIL
1641 "\t-c N[kbm]\toutput the last N bytes\n"
1643 "\t-n N[kbm]\tprint last N lines instead of last 10\n"
1644 "\t-f\t\toutput data as the file grows"
1645 #ifndef BB_FEATURE_SIMPLE_TAIL
1646 "\n\t-q\t\tnever output headers giving file names\n"
1647 "\t-s SEC\t\twait SEC seconds between reads with -f\n"
1648 "\t-v\t\talways output headers giving file names\n\n"
1649 "If the first character of N (bytes or lines) is a `+', output begins with \n"
1650 "the Nth item from the start of each file, otherwise, print the last N items\n"
1651 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)."
1653 // "\nIf the first character of N (bytes or lines) is a `+', output begins with \n"
1654 // "the Nth item from the start of each file."
1662 #if defined USAGE_ENUM
1664 #elif defined USAGE_MESSAGES
1665 #ifdef BB_FEATURE_TAR_CREATE
1670 #if defined BB_FEATURE_TAR_EXCLUDE
1674 "[-f tarFile] [FILE(s)] ..."
1675 #ifndef BB_FEATURE_TRIVIAL_HELP
1676 "\n\nCreate, extract, or list files from a tar file.\n\n"
1677 "Main operation mode:\n"
1678 #ifdef BB_FEATURE_TAR_CREATE
1683 "\nFile selection:\n"
1684 "\tf\t\tname of tarfile or \"-\" for stdin\n"
1685 "\tO\t\textract to stdout\n"
1686 #if defined BB_FEATURE_TAR_EXCLUDE
1687 "\texclude\t\tfile to exclude\n"
1688 "\tX\t\tfile with names to exclude\n"
1690 "\nInformative output:\n"
1691 "\tv\t\tverbosely list files processed"
1698 #if defined USAGE_ENUM
1700 #elif defined USAGE_MESSAGES
1701 "[OPTION]... [FILE]..."
1702 #ifndef BB_FEATURE_TRIVIAL_HELP
1703 "\n\nCopy standard input to each FILE, and also to standard output.\n\n"
1704 "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite"
1710 #if defined BB_TELNET
1711 #if defined USAGE_ENUM
1713 #elif defined USAGE_MESSAGES
1715 #ifndef BB_FEATURE_TRIVIAL_HELP
1716 "\n\nTelnet is used to establish interactive communication with another\n"
1717 "computer over a network using the TELNET protocol."
1724 #if defined USAGE_ENUM
1726 #elif defined USAGE_MESSAGES
1727 "\ntest EXPRESSION\n"
1729 #ifndef BB_FEATURE_TRIVIAL_HELP
1730 "\n\nChecks file types and compares values returning an exit\n"
1731 "code determined by the value of EXPRESSION."
1737 #if defined BB_TOUCH
1738 #if defined USAGE_ENUM
1740 #elif defined USAGE_MESSAGES
1741 "[-c] file [file ...]"
1742 #ifndef BB_FEATURE_TRIVIAL_HELP
1743 "\n\nUpdate the last-modified date on the given file[s].\n\n"
1745 "\t-c\tDo not create any files"
1752 #if defined USAGE_ENUM
1754 #elif defined USAGE_MESSAGES
1755 "[-cds] STRING1 [STRING2]"
1756 #ifndef BB_FEATURE_TRIVIAL_HELP
1757 "\n\nTranslate, squeeze, and/or delete characters from\n"
1758 "standard input, writing to standard output.\n\n"
1760 "\t-c\ttake complement of STRING1\n"
1761 "\t-d\tdelete input characters coded STRING1\n"
1762 "\t-s\tsqueeze multiple output characters of STRING2 into one character"
1768 #if defined BB_TRUE_FALSE
1769 #if defined USAGE_ENUM
1771 #elif defined USAGE_MESSAGES
1773 #ifndef BB_FEATURE_TRIVIAL_HELP
1774 "\n\nReturn an exit code of TRUE (0)."
1781 #if defined USAGE_ENUM
1783 #elif defined USAGE_MESSAGES
1785 #ifndef BB_FEATURE_TRIVIAL_HELP
1786 "\n\nPrint the file name of the terminal connected to standard input.\n\n"
1788 "\t-s\tprint nothing, only return an exit status"
1794 #if defined BB_UMOUNT
1795 #if defined USAGE_ENUM
1797 #elif defined USAGE_MESSAGES
1798 "[flags] filesystem|directory"
1799 #ifndef BB_FEATURE_TRIVIAL_HELP
1800 "\nUnmount file systems\n"
1801 "\nFlags:\n" "\t-a:\tUnmount all file systems"
1803 " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1807 "\t-r:\tTry to remount devices as read-only if mount is busy"
1808 #if defined BB_FEATURE_MOUNT_FORCE
1809 "\n\t-f:\tForce filesystem umount (i.e. unreachable NFS server)"
1811 #if defined BB_FEATURE_MOUNT_LOOP
1812 "\n\t-l:\tDo not free loop device (if a loop device has been used)"
1819 #if defined BB_UNAME
1820 #if defined USAGE_ENUM
1822 #elif defined USAGE_MESSAGES
1824 #ifndef BB_FEATURE_TRIVIAL_HELP
1825 "\n\nPrint certain system information. With no OPTION, same as -s.\n\n"
1827 "\t-a\tprint all information\n"
1828 "\t-m\tthe machine (hardware) type\n"
1829 "\t-n\tprint the machine's network node hostname\n"
1830 "\t-r\tprint the operating system release\n"
1831 "\t-s\tprint the operating system name\n"
1833 "\t-p\tprint the host processor type\n"
1834 "\t-v\tprint the operating system version"
1841 #if defined USAGE_ENUM
1843 #elif defined USAGE_MESSAGES
1844 "[OPTION]... [INPUT [OUTPUT]]"
1845 #ifndef BB_FEATURE_TRIVIAL_HELP
1846 "\n\nDiscard all but one of successive identical lines from INPUT\n"
1847 "(or standard input), writing to OUTPUT (or standard output).\n"
1849 "\t-c\tprefix lines by the number of occurrences\n"
1850 "\t-d\tonly print duplicate lines\n"
1851 "\t-u\tonly print unique lines"
1857 #if defined BB_UNIX2DOS
1858 #if defined USAGE_ENUM
1859 unix2dos_usage_index
1860 #elif defined USAGE_MESSAGES
1861 "< unixfile > dosfile"
1862 #ifndef BB_FEATURE_TRIVIAL_HELP
1863 "\n\nConverts a text file from unix format to dos format."
1869 #if defined BB_UPDATE
1870 #if defined USAGE_ENUM
1872 #elif defined USAGE_MESSAGES
1874 #ifndef BB_FEATURE_TRIVIAL_HELP
1875 "\n\nPeriodically flushes filesystem buffers.\n\n"
1877 "\t-S\tforce use of sync(2) instead of flushing\n"
1878 "\t-s SECS\tcall sync this often (default 30)\n"
1879 "\t-f SECS\tflush some buffers this often (default 5)"
1885 #if defined BB_UPTIME
1886 #if defined USAGE_ENUM
1888 #elif defined USAGE_MESSAGES
1890 #ifndef BB_FEATURE_TRIVIAL_HELP
1891 "\n\nDisplay the time since the last boot."
1897 #if defined BB_USLEEP
1898 #if defined USAGE_ENUM
1900 #elif defined USAGE_MESSAGES
1902 #ifndef BB_FEATURE_TRIVIAL_HELP
1903 "\n\nPause for N microseconds."
1909 #if defined BB_UUDECODE
1910 #if defined USAGE_ENUM
1911 uudecode_usage_index
1912 #elif defined USAGE_MESSAGES
1914 #ifndef BB_FEATURE_TRIVIAL_HELP
1915 "\n\nUudecode a file that is uuencoded.\n\n"
1917 "\t-o FILE\tdirect output to FILE"
1923 #if defined BB_UUENCODE
1924 #if defined USAGE_ENUM
1925 uuencode_usage_index
1926 #elif defined USAGE_MESSAGES
1927 "[OPTION] [INFILE] REMOTEFILE"
1928 #ifndef BB_FEATURE_TRIVIAL_HELP
1929 "\n\nUuencode a file.\n\n"
1931 "\t-m\tuse base64 encoding as of RFC1521"
1937 #if defined BB_WATCHDOG
1938 #if defined USAGE_ENUM
1939 watchdog_usage_index
1940 #elif defined USAGE_MESSAGES
1942 #ifndef BB_FEATURE_TRIVIAL_HELP
1943 "\n\nPeriodically write to watchdog device \"dev\""
1950 #if defined USAGE_ENUM
1952 #elif defined USAGE_MESSAGES
1953 "[OPTION]... [FILE]..."
1954 #ifndef BB_FEATURE_TRIVIAL_HELP
1955 "\n\nPrint line, word, and byte counts for each FILE, and a total line if\n"
1956 "more than one FILE is specified. With no FILE, read standard input.\n\n"
1958 "\t-c\tprint the byte counts\n"
1959 "\t-l\tprint the newline counts\n"
1961 "\t-L\tprint the length of the longest line\n"
1962 "\t-w\tprint the word counts"
1969 #if defined USAGE_ENUM
1971 #elif defined USAGE_MESSAGES
1972 "[-c] [-O file] url"
1973 #ifndef BB_FEATURE_TRIVIAL_HELP
1974 "\n\nwget retrieves files via HTTP\n\n"
1976 "\t-c\tcontinue retrieval of aborted transfers\n"
1977 "\t-O\tsave to filename ('-' for stdout)"
1983 #if defined BB_WHICH
1984 #if defined USAGE_ENUM
1986 #elif defined USAGE_MESSAGES
1988 #ifndef BB_FEATURE_TRIVIAL_HELP
1989 "\n\nLocates a COMMAND."
1995 #if defined BB_WHOAMI
1996 #if defined USAGE_ENUM
1998 #elif defined USAGE_MESSAGES
2000 #ifndef BB_FEATURE_TRIVIAL_HELP
2001 "\n\nPrints the user name associated with the current effective user id."
2007 #if defined BB_XARGS
2008 #if defined USAGE_ENUM
2010 #elif defined USAGE_MESSAGES
2011 "[COMMAND] [ARGS...]"
2012 #ifndef BB_FEATURE_TRIVIAL_HELP
2013 "\n\nExecutes COMMAND on every item given by standard input."
2020 #if defined USAGE_ENUM
2022 #elif defined USAGE_MESSAGES
2023 "[OPTION]... [STRING]..."
2024 #ifndef BB_FEATURE_TRIVIAL_HELP
2025 "\n\nRepeatedly outputs a line with all specified STRING(s), or `y'."
2031 #if defined USAGE_ENUM || defined USAGE_MESSAGES
2037 #undef USAGE_MESSAGES