4 const char ar_usage[] =
5 "ar [optxvV] archive [filenames] \n"
6 #ifndef BB_FEATURE_TRIVIAL_HELP
7 "\nExtract or list files from an ar archive.\n\n"
9 "\to\t\tpreserve original dates\n"
10 "\tp\t\textract to stdout\n"
13 "\tv\t\tverbosely list files processed\n"
18 #if defined BB_BASENAME
19 const char basename_usage[] =
20 "basename FILE [SUFFIX]\n"
21 #ifndef BB_FEATURE_TRIVIAL_HELP
22 "\nStrips directory path and suffixes from FILE.\n"
23 "If specified, also removes any trailing SUFFIX.\n"
29 const char cat_usage[] =
31 #ifndef BB_FEATURE_TRIVIAL_HELP
32 "\nConcatenates FILE(s) and prints them to stdout.\n"
37 #if defined BB_CHMOD_CHOWN_CHGRP
38 const char chgrp_usage[] =
39 "chgrp [OPTION]... GROUP FILE...\n"
40 #ifndef BB_FEATURE_TRIVIAL_HELP
41 "\nChange the group membership of each FILE to GROUP.\n"
42 "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
47 #if defined BB_CHMOD_CHOWN_CHGRP
48 const char chmod_usage[] =
49 "chmod [-R] MODE[,MODE]... FILE...\n"
50 #ifndef BB_FEATURE_TRIVIAL_HELP
51 "\nEach MODE is one or more of the letters ugoa, one of the symbols +-= and\n"
52 "one or more of the letters rwxst.\n\n"
53 "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
58 #if defined BB_CHMOD_CHOWN_CHGRP
59 const char chown_usage[] =
60 "chown [OPTION]... OWNER[<.|:>[GROUP] FILE...\n"
61 #ifndef BB_FEATURE_TRIVIAL_HELP
62 "\nChange the owner and/or group of each FILE to OWNER and/or GROUP.\n"
63 "\nOptions:\n\t-R\tChanges files and directories recursively.\n"
69 const char chroot_usage[] =
70 "chroot NEWROOT [COMMAND...]\n"
71 #ifndef BB_FEATURE_TRIVIAL_HELP
72 "\nRun COMMAND with root directory set to NEWROOT.\n"
78 const char chvt_usage[] =
80 #ifndef BB_FEATURE_TRIVIAL_HELP
81 "\nChanges the foreground virtual terminal to /dev/ttyN\n"
87 const char cp_usage[] =
88 "cp [OPTION]... SOURCE DEST\n"
89 " or: cp [OPTION]... SOURCE... DIRECTORY\n"
90 #ifndef BB_FEATURE_TRIVIAL_HELP
91 "\nCopies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n"
93 "\t-a\tSame as -dpR\n"
94 "\t-d\tPreserves links\n"
95 "\t-p\tPreserves file attributes if possible\n"
96 "\t-f\tforce (implied; ignored) - always set\n"
97 "\t-R\tCopies directories recursively\n"
103 const char cut_usage[] =
104 "cut [OPTION]... [FILE]...\n"
105 #ifndef BB_FEATURE_TRIVIAL_HELP
106 "\nPrints selected fields from each input FILE to standard output.\n\n"
108 "\t-b LIST\tOutput only bytes from LIST\n"
109 "\t-c LIST\tOutput only characters from LIST\n"
110 "\t-d CHAR\tUse CHAR instead of tab as the field delimiter\n"
111 "\t-s\tOnly output Lines if the include DELIM\n"
112 "\t-f N\tPrint only these fields\n"
119 const char date_usage[] =
120 "date [OPTION]... [+FORMAT]\n"
121 " or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]\n"
122 #ifndef BB_FEATURE_TRIVIAL_HELP
123 "\nDisplays the current time in the given FORMAT, or sets the system date.\n"
124 "\nOptions:\n\t-R\tOutputs RFC-822 compliant date string\n"
125 "\t-s\tSets time described by STRING\n"
126 "\t-u\tPrints or sets Coordinated Universal Time\n"
132 const char dc_usage[] =
133 "dc expression ...\n"
134 #ifndef BB_FEATURE_TRIVIAL_HELP
135 "\nThis is a Tiny RPN calculator that understands the\n"
136 "following operations: +, -, /, *, and, or, not, eor.\n"
137 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n"
143 const char dd_usage[] =
144 "dd [if=FILE] [of=FILE] [bs=N] [count=N] [skip=N] [seek=N]\n"
145 #ifndef BB_FEATURE_TRIVIAL_HELP
146 "\nCopy a file, converting and formatting according to options\n\n"
147 "\tif=FILE\tread from FILE instead of stdin\n"
148 "\tof=FILE\twrite to FILE instead of stdout\n"
149 "\tbs=N\tread and write N bytes at a time\n"
150 "\tcount=N\tcopy only N input blocks\n"
151 "\tskip=N\tskip N input blocks\n"
152 "\tseek=N\tskip N output blocks\n"
154 "Numbers may be suffixed by w (x2), k (x1024), b (x512), or M (x1024^2)\n"
159 #if defined BB_DEALLOCVT
160 const char deallocvt_usage[] =
162 #ifndef BB_FEATURE_TRIVIAL_HELP
163 "\nDeallocate unused virtual terminal /dev/ttyN\n"
169 const char df_usage[] =
170 "df [filesystem ...]\n"
171 #ifndef BB_FEATURE_TRIVIAL_HELP
172 "\nPrint the filesystem space used and space available.\n"
177 #if defined BB_DIRNAME
178 const char dirname_usage[] =
179 "dirname [FILENAME ...]\n"
180 #ifndef BB_FEATURE_TRIVIAL_HELP
181 "\nStrips non-directory suffix from FILENAME\n"
187 const char dmesg_usage[] =
188 "dmesg [-c] [-n LEVEL] [-s SIZE]\n"
189 #ifndef BB_FEATURE_TRIVIAL_HELP
190 "\nPrints or controls the kernel ring buffer\n\n"
192 "\t-c\t\tClears the ring buffer's contents after printing\n"
193 "\t-n LEVEL\tSets console logging level\n"
194 "\t-s SIZE\t\tUse a buffer of size SIZE\n"
200 const char du_usage[] =
201 "du [OPTION]... [FILE]...\n"
202 #ifndef BB_FEATURE_TRIVIAL_HELP
203 "\nSummarizes disk space used for each FILE and/or directory.\n"
204 "Disk space is printed in units of 1024 bytes.\n\n"
206 "\t-l\tcount sizes many times if hard linked\n"
207 "\t-s\tdisplay only a total for each argument\n"
212 #if defined BB_DUMPKMAP
213 const char dumpkmap_usage[] =
215 #ifndef BB_FEATURE_TRIVIAL_HELP
216 "\nPrints out a binary keyboard translation table to standard input.\n"
222 const char dutmp_usage[] =
224 #ifndef BB_FEATURE_TRIVIAL_HELP
225 "\nDump utmp file format (pipe delimited) from FILE\n"
226 "or stdin to stdout. (i.e. 'dutmp /var/run/utmp')\n"
232 const char echo_usage[] =
233 "echo [-neE] [ARG ...]\n"
234 #ifndef BB_FEATURE_TRIVIAL_HELP
235 "\nPrints the specified ARGs to stdout\n\n"
237 "\t-n\tsuppress trailing newline\n"
238 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
239 "\t-E\tdisable interpretation of backslash-escaped characters\n"
244 #if defined BB_FDFLUSH
245 const char fdflush_usage[] =
247 #ifndef BB_FEATURE_TRIVIAL_HELP
248 "\nForces floppy disk drive to detect disk change\n"
254 const char find_usage[] =
255 "find [PATH...] [EXPRESSION]\n"
256 #ifndef BB_FEATURE_TRIVIAL_HELP
257 "\nSearch for files in a directory hierarchy. The default PATH is\n"
258 "the current directory; default EXPRESSION is '-print'\n\n"
259 "\nEXPRESSION may consist of:\n"
260 "\t-follow\t\tDereference symbolic links.\n"
261 "\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n"
262 "\t-print\t\tprint the full file name followed by a newline to stdout.\n"
268 const char free_usage[] =
270 #ifndef BB_FEATURE_TRIVIAL_HELP
271 "\nDisplays the amount of free and used system memory\n"
276 #if defined BB_FREERAMDISK
277 const char freeramdisk_usage[] =
278 "freeramdisk DEVICE\n"
279 #ifndef BB_FEATURE_TRIVIAL_HELP
280 "\nFrees all memory used by the specified ramdisk.\n"
285 #if defined BB_FSCK_MINIX
286 const char fsck_minix_usage[] =
287 "Usage: fsck.minix [-larvsmf] /dev/name\n"
288 #ifndef BB_FEATURE_TRIVIAL_HELP
289 "\nPerforms a consistency check for MINIX filesystems.\n\n"
291 "\t-l\tLists all filenames\n"
292 "\t-r\tPerform interactive repairs\n"
293 "\t-a\tPerform automatic repairs\n"
295 "\t-s\tOutputs super-block information\n"
296 "\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n"
297 "\t-f\tForce file system check.\n\n"
303 const char grep_usage[] =
304 "grep [-ihHnqvs] pattern [files...]\n"
305 #ifndef BB_FEATURE_TRIVIAL_HELP
306 "\nSearch for PATTERN in each FILE or standard input.\n\n"
308 "\t-H\tprefix output lines with filename where match was found\n"
309 "\t-h\tsuppress the prefixing filename on output\n"
310 "\t-i\tignore case distinctions\n"
311 "\t-n\tprint line number with output lines\n"
312 "\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n"
313 "\t-v\tselect non-matching lines\n"
314 "\t-s\tsuppress file open/read error messages\n\n"
319 #if defined BB_GUNZIP
320 const char gunzip_usage[] =
321 "gunzip [OPTION]... FILE\n"
322 #ifndef BB_FEATURE_TRIVIAL_HELP
323 "\nUncompress FILE (or standard input if FILE is '-').\n\n"
325 "\t-c\tWrite output to standard output\n"
326 "\t-t\tTest compressed file integrity\n"
332 const char gzip_usage[] =
333 "gzip [OPTION]... FILE\n"
334 #ifndef BB_FEATURE_TRIVIAL_HELP
335 "\nCompress FILE with maximum compression.\n"
336 "When FILE is '-', reads standard input. Implies -c.\n\n"
338 "\t-c\tWrite output to standard output instead of FILE.gz\n"
344 const char head_usage[] =
345 "head [OPTION] [FILE]...\n"
346 #ifndef BB_FEATURE_TRIVIAL_HELP
347 "\nPrint first 10 lines of each FILE to standard output.\n"
348 "With more than one FILE, precede each with a header giving the\n"
349 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
351 "Options:\n" "\t-n NUM\t\tPrint first NUM lines instead of first 10\n"
356 #if defined BB_HOSTNAME
357 const char hostname_usage[] =
358 "hostname [OPTION] {hostname | -F file}\n"
359 #ifndef BB_FEATURE_TRIVIAL_HELP
360 "\nGet or set the hostname or DNS domain name. If a hostname is given\n"
361 "(or a file with the -F parameter), the host name will be set.\n\n"
365 "\t-i\t\tAddresses for the hostname\n"
366 "\t-d\t\tDNS domain name\n"
367 "\t-F FILE\t\tUse the contents of FILE to specify the hostname\n"
373 const char id_usage[] =
374 "id [OPTIONS]... [USERNAME]\n"
375 #ifndef BB_FEATURE_TRIVIAL_HELP
376 "\nPrint information for USERNAME or the current user\n\n"
378 "\t-g\tprints only the group ID\n"
379 "\t-u\tprints only the user ID\n"
380 "\t-r\tprints the real user ID instead of the effective ID (with -ug)\n\n"
385 #if defined BB_INSMOD
386 const char insmod_usage[] =
387 "insmod [OPTION]... MODULE [symbol=value]...\n"
388 #ifndef BB_FEATURE_TRIVIAL_HELP
389 "\nLoads the specified kernel modules into the kernel.\n\n"
391 "\t-f\tForce module to load into the wrong kernel version.\n"
392 "\t-k\tMake module autoclean-able.\n"
393 "\t-v\tverbose output\n" "\t-x\tdo not export externs\n"
399 const char kill_usage[] =
400 "kill [-signal] process-id [process-id ...]\n"
401 #ifndef BB_FEATURE_TRIVIAL_HELP
402 "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
403 "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
408 #if defined BB_KILLALL
409 const char killall_usage[] =
410 "killall [-signal] process-name [process-name ...]\n"
411 #ifndef BB_FEATURE_TRIVIAL_HELP
412 "\nSend a signal (default is SIGTERM) to the specified process(es).\n\n"
413 "Options:\n" "\t-l\tList all signal names and numbers.\n\n"
418 #if defined BB_LENGTH
419 const char length_usage[] =
421 #ifndef BB_FEATURE_TRIVIAL_HELP
422 "\nPrints out the length of the specified STRING.\n"
428 const char ln_usage[] =
429 "ln [OPTION] TARGET... LINK_NAME|DIRECTORY\n"
430 #ifndef BB_FEATURE_TRIVIAL_HELP
431 "\nCreate a link named LINK_NAME or DIRECTORY to the specified TARGET\n"
432 "\nYou may use '--' to indicate that all following arguments are non-options.\n\n"
434 "\t-s\tmake symbolic links instead of hard links\n"
436 "\t-f\tremove existing destination files\n"
437 "\t-n\tno dereference symlinks - treat like normal file\n"
442 #if defined BB_LOADACM
443 const char loadacm_usage[] =
445 #ifndef BB_FEATURE_TRIVIAL_HELP
446 "\nLoads an acm from standard input.\n"
451 #if defined BB_LOADFONT
452 const char loadfont_usage[] =
454 #ifndef BB_FEATURE_TRIVIAL_HELP
455 "Loads a console font from standard input.\n"
460 #if defined BB_LOADKMAP
461 const char loadkmap_usage[] =
463 #ifndef BB_FEATURE_TRIVIAL_HELP
464 "\nLoads a binary keyboard translation table from standard input.\n"
469 #if defined BB_LOGGER
470 const char logger_usage[] =
471 "logger [OPTION]... [MESSAGE]\n"
472 #ifndef BB_FEATURE_TRIVIAL_HELP
473 "\nWrite MESSAGE to the system log. If MESSAGE is '-', log stdin.\n\n"
475 "\t-s\tLog to stderr as well as the system log.\n"
476 "\t-t\tLog using the specified tag (defaults to user name).\n"
478 "\t-p\tEnter the message with the specified priority.\n"
479 "\t\tThis may be numerical or a ``facility.level'' pair.\n"
484 #if defined BB_LOGNAME
485 const char logname_usage[] =
487 #ifndef BB_FEATURE_TRIVIAL_HELP
488 "\nPrint the name of the current user.\n"
494 const char ls_usage[] =
496 #ifdef BB_FEATURE_LS_TIMESTAMPS
500 #ifdef BB_FEATURE_LS_TIMESTAMPS
504 #ifdef BB_FEATURE_LS_FILETYPES
507 #ifdef BB_FEATURE_LS_TIMESTAMPS
511 #ifdef BB_FEATURE_LS_FILETYPES
514 #ifdef BB_FEATURE_LS_RECURSIVE
518 #ifndef BB_FEATURE_TRIVIAL_HELP
519 "\nList directory contents\n\n"
521 "\t-a\tdo not hide entries starting with .\n"
522 #ifdef BB_FEATURE_LS_TIMESTAMPS
523 "\t-c\twith -l: show ctime (the time of last\n"
524 "\t\tmodification of file status information)\n"
526 "\t-d\tlist directory entries instead of contents\n"
527 #ifdef BB_FEATURE_LS_TIMESTAMPS
528 "\t-e\tlist both full date and full time\n"
530 "\t-l\tuse a long listing format\n"
531 "\t-n\tlist numeric UIDs and GIDs instead of names\n"
532 #ifdef BB_FEATURE_LS_FILETYPES
533 "\t-p\tappend indicator (one of /=@|) to entries\n"
535 #ifdef BB_FEATURE_LS_TIMESTAMPS
536 "\t-u\twith -l: show access time (the time of last\n"
537 "\t\taccess of the file)\n"
539 "\t-x\tlist entries by lines instead of by columns\n"
540 "\t-A\tdo not list implied . and ..\n"
541 "\t-C\tlist entries by columns\n"
542 #ifdef BB_FEATURE_LS_FILETYPES
543 "\t-F\tappend indicator (one of */=@|) to entries\n"
545 #ifdef BB_FEATURE_LS_RECURSIVE
546 "\t-R\tlist subdirectories recursively\n"
552 #if defined BB_MAKEDEVS
553 const char makedevs_usage[] =
554 "makedevs NAME TYPE MAJOR MINOR FIRST LAST [s]\n"
555 #ifndef BB_FEATURE_TRIVIAL_HELP
556 "\nCreates a range of block or character special files\n\n"
558 "\tb:\tMake a block (buffered) device.\n"
559 "\tc or u:\tMake a character (un-buffered) device.\n"
560 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n\n"
561 "FIRST specifies the number appended to NAME to create the first device.\n"
562 "LAST specifies the number of the last item that should be created.\n"
563 "If 's' is the last argument, the base device is created as well.\n\n"
565 "\tmakedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n"
566 "\tmakedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8\n"
571 #if defined BB_MD5SUM
572 const char md5sum_usage[] =
573 "md5sum [OPTION] [FILE]...\n"
574 "or: md5sum [OPTION] -c [FILE]\n"
575 #ifndef BB_FEATURE_TRIVIAL_HELP
576 "\nPrint or check MD5 checksums.\n\n"
578 "With no FILE, or when FILE is -, read standard input.\n\n"
579 "\t-b\tread files in binary mode\n"
580 "\t-c\tcheck MD5 sums against given list\n"
581 "\t-t\tread files in text mode (default)\n"
582 "\t-g\tread a string\n"
583 "\nThe following two options are useful only when verifying checksums:\n"
584 "\t-s,\tdon't output anything, status code shows success\n"
585 "\t-w,\twarn about improperly formated MD5 checksum lines\n"
591 const char mkdir_usage[] =
592 "mkdir [OPTION] DIRECTORY...\n"
593 #ifndef BB_FEATURE_TRIVIAL_HELP
594 "\nCreate the DIRECTORY(ies), if they do not already exist\n\n"
597 "\t-m\tset permission mode (as in chmod), not rwxrwxrwx - umask\n"
598 "\t-p\tno error if existing, make parent directories as needed\n"
603 #if defined BB_MKFIFO
604 const char mkfifo_usage[] =
605 "mkfifo [OPTIONS] name\n"
606 #ifndef BB_FEATURE_TRIVIAL_HELP
607 "\nCreates a named pipe (identical to 'mknod name p')\n\n"
609 "\t-m\tcreate the pipe using the specified mode (default a=rw)\n"
614 #if defined BB_MKFS_MINIX
615 const char mkfs_minix_usage[] =
616 "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n"
617 #ifndef BB_FEATURE_TRIVIAL_HELP
618 "\nMake a MINIX filesystem.\n\n"
620 "\t-c\t\tCheck the device for bad blocks\n"
621 "\t-n [14|30]\tSpecify the maximum length of filenames\n"
622 "\t-i INODES\tSpecify the number of inodes for the filesystem\n"
623 "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"
624 "\t-v\t\tMake a Minix version 2 filesystem\n\n"
630 const char mknod_usage[] =
631 "mknod [OPTIONS] NAME TYPE MAJOR MINOR\n"
632 #ifndef BB_FEATURE_TRIVIAL_HELP
633 "\nCreate a special file (block, character, or pipe).\n\n"
635 "\t-m\tcreate the special file using the specified mode (default a=rw)\n\n"
637 "\tb:\tMake a block (buffered) device.\n"
638 "\tc or u:\tMake a character (un-buffered) device.\n"
639 "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes.\n"
644 #if defined BB_MKSWAP
645 const char mkswap_usage[] =
646 "mkswap [-c] [-v0|-v1] device [block-count]\n"
647 #ifndef BB_FEATURE_TRIVIAL_HELP
648 "\nPrepare a disk partition to be used as a swap partition.\n\n"
649 "Options:\n" "\t-c\t\tCheck for read-ability.\n"
650 "\t-v0\t\tMake version 0 swap [max 128 Megs].\n"
651 "\t-v1\t\tMake version 1 swap [big!] (default for kernels > 2.1.117).\n"
653 "\tblock-count\tNumber of block to use (default is entire partition).\n"
658 #if defined BB_MKTEMP
659 const char mktemp_usage[] =
660 "mktemp [-q] TEMPLATE\n"
661 #ifndef BB_FEATURE_TRIVIAL_HELP
662 "\nCreates a temporary file with its name based on TEMPLATE.\n"
663 "TEMPLATE is any name with six `Xs' (i.e. /tmp/temp.XXXXXX).\n"
669 const char more_usage[] =
671 #ifndef BB_FEATURE_TRIVIAL_HELP
672 "\nMore is a filter for viewing FILE one screenful at a time.\n"
678 const char mount_usage[] =
679 "mount [flags] device directory [-o options,more-options]\n"
680 #ifndef BB_FEATURE_TRIVIAL_HELP
681 "\nMount a filesystem\n\n"
683 "\t-a:\t\tMount all filesystems in fstab.\n"
685 "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
686 "\t-n:\t\tDon't write a mount table entry.\n"
688 "\t-o option:\tOne of many filesystem options, listed below.\n"
689 "\t-r:\t\tMount the filesystem read-only.\n"
690 "\t-t fs-type:\tSpecify the filesystem type.\n"
691 "\t-w:\t\tMount for reading and writing (default).\n"
693 "Options for use with the \"-o\" flag:\n"
694 "\tasync/sync:\tWrites are asynchronous / synchronous.\n"
695 "\tatime/noatime:\tEnable / disable updates to inode access times.\n"
696 "\tdev/nodev:\tAllow use of special device files / disallow them.\n"
697 "\texec/noexec:\tAllow use of executable files / disallow them.\n"
698 #if defined BB_FEATURE_MOUNT_LOOP
699 "\tloop:\t\tMounts a file via loop device.\n"
701 "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n"
702 "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n"
703 "\tro/rw:\t\tMount for read-only / read-write.\n"
704 "\nThere are EVEN MORE flags that are specific to each filesystem.\n"
705 "You'll have to see the written documentation for those.\n"
711 const char mt_usage[] =
712 "mt [-f device] opcode value\n"
713 #ifndef BB_FEATURE_TRIVIAL_HELP
714 "\nControl magnetic tape drive operation\n"
720 const char mv_usage[] =
722 " or: mv SOURCE... DIRECTORY\n"
723 #ifndef BB_FEATURE_TRIVIAL_HELP
724 "\nRename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n"
730 const char nc_usage[] =
732 #ifndef BB_FEATURE_TRIVIAL_HELP
733 "\nNetcat opens a pipe to IP:port\n"
738 #if defined BB_NSLOOKUP
739 const char nslookup_usage[] =
741 #ifndef BB_FEATURE_TRIVIAL_HELP
742 "\nQueries the nameserver for the IP address of the given HOST\n"
748 #if defined BB_FEATURE_SIMPLE_PING
749 const char ping_usage[] =
751 #ifndef BB_FEATURE_TRIVIAL_HELP
752 "\nSend ICMP ECHO_REQUEST packets to network hosts\n"
755 #else /* ! defined BB_FEATURE_SIMPLE_PING */
756 const char ping_usage[] =
757 "ping [OPTION]... host\n"
758 #ifndef BB_FEATURE_TRIVIAL_HELP
759 "\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n"
761 "\t-c COUNT\tSend only COUNT pings.\n"
762 "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n"
763 "\t-q\t\tQuiet mode, only displays output at start\n"
764 "\t\t\tand when finished.\n"
770 #if defined BB_PRINTF
771 const char printf_usage[] =
772 "printf FORMAT [ARGUMENT...]\n"
773 #ifndef BB_FEATURE_TRIVIAL_HELP
774 "\nFormats and prints ARGUMENT(s) according to FORMAT,\n"
775 "Where FORMAT controls the output exactly as in C printf.\n"
781 const char ps_usage[] =
783 #ifndef BB_FEATURE_TRIVIAL_HELP
784 "\nReport process status\n"
785 "\nThis version of ps accepts no options.\n"
791 const char rm_usage[] =
792 "rm [OPTION]... FILE...\n"
793 #ifndef BB_FEATURE_TRIVIAL_HELP
794 "\nRemove (unlink) the FILE(s). You may use '--' to\n"
795 "indicate that all following arguments are non-options.\n\n"
797 "\t-f\t\tremove existing destinations, never prompt\n"
798 "\t-r or -R\tremove the contents of directories recursively\n"
804 const char rmdir_usage[] =
805 "rmdir [OPTION]... DIRECTORY...\n"
806 #ifndef BB_FEATURE_TRIVIAL_HELP
807 "\nRemove the DIRECTORY(ies), if they are empty.\n"
813 const char rmmod_usage[] =
814 "rmmod [OPTION]... [MODULE]...\n"
815 #ifndef BB_FEATURE_TRIVIAL_HELP
816 "\nUnloads the specified kernel modules from the kernel.\n\n"
818 "\t-a\tTry to remove all unused kernel modules.\n"
824 const char sed_usage[] =
825 "sed [-Vhnef] pattern [files...]\n"
826 #ifndef BB_FEATURE_TRIVIAL_HELP
828 "-n\tsuppress automatic printing of pattern space\n"
829 "-e script\tadd the script to the commands to be executed\n"
830 "-f scriptfile\tadd the contents of script-file to the commands to be executed\n"
831 "-h\tdisplay this help message\n"
832 "-V\toutput version information and exit\n"
834 "If no -e or -f is given, the first non-option argument is taken as the\n"
835 "sed script to interpret. All remaining arguments are names of input\n"
836 "files; if no input files are specified, then the standard input is read.\n"
841 #if defined BB_SETKEYCODES
842 const char setkeycodes_usage[] =
843 "setkeycodes SCANCODE KEYCODE ...\n"
844 #ifndef BB_FEATURE_TRIVIAL_HELP
845 "\nSet entries into the kernel's scancode-to-keycode map,\n"
846 "allowing unusual keyboards to generate usable keycodes.\n\n"
847 "SCANCODE may be either xx or e0xx (hexadecimal),\n"
848 "and KEYCODE is given in decimal\n"
854 const char shell_usage[] =
856 " or: sh -c command [args]...\n"
857 #ifndef BB_FEATURE_TRIVIAL_HELP
858 "\nlash: The BusyBox command interpreter (shell).\n\n"
864 const char sleep_usage[] =
866 #ifndef BB_FEATURE_TRIVIAL_HELP
867 "\nPause for N seconds.\n"
873 const char sort_usage[] =
875 #ifdef BB_FEATURE_SORT_REVERSE
879 #ifndef BB_FEATURE_TRIVIAL_HELP
880 "\nSorts lines of text in the specified files\n"
885 #if defined BB_SWAPONOFF
886 const char swapoff_usage[] =
887 "swapoff [OPTION] [device]\n"
888 #ifndef BB_FEATURE_TRIVIAL_HELP
889 "\nStop swapping virtual memory pages on the given device.\n\n"
891 "\t-a\tStop swapping on all swap devices\n"
896 #if defined BB_SWAPONOFF
897 const char swapon_usage[] =
898 "swapon [OPTION] [device]\n"
899 #ifndef BB_FEATURE_TRIVIAL_HELP
900 "\nStart swapping virtual memory pages on the given device.\n\n"
902 "\t-a\tStart swapping on all swap devices\n"
908 const char sync_usage[] =
910 #ifndef BB_FEATURE_TRIVIAL_HELP
911 "\nWrite all buffered filesystem blocks to disk.\n"
916 #if defined BB_SYSLOGD
917 const char syslogd_usage[] =
918 "syslogd [OPTION]...\n"
919 #ifndef BB_FEATURE_TRIVIAL_HELP
920 "\nLinux system and kernel (provides klogd) logging utility.\n"
921 "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n"
923 "\t-m NUM\t\tInterval between MARK lines (default=20min, 0=off)\n"
924 "\t-n\t\tRun as a foreground process\n"
925 #ifdef BB_FEATURE_KLOGD
926 "\t-K\t\tDo not start up the klogd process\n"
928 "\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
934 #if defined BB_FEATURE_SIMPLE_TAIL
935 const char tail_usage[] =
936 "tail [OPTION] [FILE]...\n"
937 #ifndef BB_FEATURE_TRIVIAL_HELP
938 "\nPrint last 10 lines of each FILE to standard output.\n"
939 "With more than one FILE, precede each with a header giving the\n"
940 "file name. With no FILE, or when FILE is -, read standard input.\n\n"
942 "\t-n NUM\t\tPrint last NUM lines instead of first 10\n"
944 "\t-f\t\tOutput data as the file grows. This version\n"
945 "\t\t\tof 'tail -f' supports only one file at a time.\n"
948 #else /* ! defined BB_FEATURE_SIMPLE_TAIL */
949 const char tail_usage[] =
950 "tail [OPTION]... [FILE]...\n"
951 #ifndef BB_FEATURE_TRIVIAL_HELP
952 "\nPrint last 10 lines of each FILE to standard output.\n"
953 "With more than one FILE, precede each with a header giving the file name.\n"
954 "With no FILE, or when FILE is -, read standard input.\n"
956 " -c=N[kbm] output the last N bytes\n"
957 " -f output appended data as the file grows\n"
958 " -n=N output the last N lines, instead of last 10\n"
959 " -q never output headers giving file names\n"
960 " -v always output headers giving file names\n"
962 "If the first character of N (bytes or lines) is a `+', output begins with \n"
963 "the Nth item from the start of each file, otherwise, print the last N items\n"
964 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).\n"
971 const char tar_usage[] =
972 #ifdef BB_FEATURE_TAR_CREATE
977 #if defined BB_FEATURE_TAR_EXCLUDE
980 "[-f tarFile] [FILE] ...\n"
981 #ifndef BB_FEATURE_TRIVIAL_HELP
982 "\nCreate, extract, or list files from a tar file. Note that\n"
983 "this version of tar treats hard links as separate files.\n\n"
984 "Main operation mode:\n"
985 #ifdef BB_FEATURE_TAR_CREATE
990 "\nFile selection:\n"
991 "\tf\t\tname of tarfile or \"-\" for stdin\n"
992 "\tO\t\textract to stdout\n"
993 #if defined BB_FEATURE_TAR_EXCLUDE
994 "\t--exclude\tfile to exclude\n"
996 "\nInformative output:\n"
997 "\tv\t\tverbosely list files processed\n"
1003 const char tee_usage[] =
1004 "tee [OPTION]... [FILE]...\n"
1005 #ifndef BB_FEATURE_TRIVIAL_HELP
1006 "\nCopy standard input to each FILE, and also to standard output.\n\n"
1007 "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite\n"
1012 #if defined BB_TELNET
1013 const char telnet_usage[] =
1014 "telnet host [port]\n"
1015 #ifndef BB_FEATURE_TRIVIAL_HELP
1016 "\nTelnet is used to establish interactive communication with another\n"
1017 "computer over a network using the TELNET protocol.\n"
1023 const char test_usage[] =
1025 "or [ EXPRESSION ]\n"
1026 #ifndef BB_FEATURE_TRIVIAL_HELP
1027 "\nChecks file types and compares values returning an exit\n"
1028 "code determined by the value of EXPRESSION.\n"
1033 #if defined BB_TOUCH
1034 const char touch_usage[] =
1035 "touch [-c] file [file ...]\n"
1036 #ifndef BB_FEATURE_TRIVIAL_HELP
1037 "\nUpdate the last-modified date on the given file[s].\n\n"
1039 "\t-c\tDo not create any files\n"
1045 const char tr_usage[] =
1046 "tr [-cds] STRING1 [STRING2]\n"
1047 #ifndef BB_FEATURE_TRIVIAL_HELP
1048 "\nTranslate, squeeze, and/or delete characters from\n"
1049 "standard input, writing to standard output.\n\n"
1051 "\t-c\ttake complement of STRING1\n"
1052 "\t-d\tdelete input characters coded STRING1\n"
1053 "\t-s\tsqueeze multiple output characters of STRING2 into one character\n"
1059 const char tty_usage[] =
1061 #ifndef BB_FEATURE_TRIVIAL_HELP
1062 "\nPrint the file name of the terminal connected to standard input.\n\n"
1064 "\t-s\tprint nothing, only return an exit status\n"
1069 #if defined BB_UMOUNT
1070 const char umount_usage[] =
1071 "umount [flags] filesystem|directory\n"
1072 #ifndef BB_FEATURE_TRIVIAL_HELP
1073 "Unmount file systems\n"
1074 "\nFlags:\n" "\t-a:\tUnmount all file systems"
1076 " in /etc/mtab\n\t-n:\tDon't erase /etc/mtab entries\n"
1080 "\t-r:\tTry to remount devices as read-only if mount is busy\n"
1081 #if defined BB_FEATURE_MOUNT_FORCE
1082 "\t-f:\tForce filesystem umount (i.e. unreachable NFS server)\n"
1084 #if defined BB_FEATURE_MOUNT_LOOP
1085 "\t-l:\tDo not free loop device (if a loop device has been used)\n"
1091 #if defined BB_UNAME
1092 const char uname_usage[] =
1093 "uname [OPTION]...\n"
1094 #ifndef BB_FEATURE_TRIVIAL_HELP
1095 "\nPrint certain system information. With no OPTION, same as -s.\n\n"
1097 "\t-a\tprint all information\n"
1098 "\t-m\tthe machine (hardware) type\n"
1099 "\t-n\tprint the machine's network node hostname\n"
1100 "\t-r\tprint the operating system release\n"
1101 "\t-s\tprint the operating system name\n"
1103 "\t-p\tprint the host processor type\n"
1104 "\t-v\tprint the operating system version\n"
1110 const char uniq_usage[] =
1111 "uniq [OPTION]... [INPUT [OUTPUT]]\n"
1112 #ifndef BB_FEATURE_TRIVIAL_HELP
1113 "\nDiscard all but one of successive identical lines from INPUT\n"
1114 "(or standard input), writing to OUTPUT (or standard output).\n"
1119 #if defined BB_UPDATE
1120 const char update_usage[] =
1121 "update [options]\n"
1122 #ifndef BB_FEATURE_TRIVIAL_HELP
1123 "\nPeriodically flushes filesystem buffers.\n\n"
1125 "\t-S\tforce use of sync(2) instead of flushing\n"
1126 "\t-s SECS\tcall sync this often (default 30)\n"
1127 "\t-f SECS\tflush some buffers this often (default 5)\n"
1132 #if defined BB_USLEEP
1133 const char usleep_usage[] =
1135 #ifndef BB_FEATURE_TRIVIAL_HELP
1136 "\nPause for N microseconds.\n"
1141 #if defined BB_UUDECODE
1142 const char uudecode_usage[] =
1143 "uudecode [FILE]...\n"
1144 #ifndef BB_FEATURE_TRIVIAL_HELP
1145 "\nUudecode a file that is uuencoded.\n\n"
1147 "\t-o FILE\tdirect output to FILE\n"
1152 #if defined BB_UUENCODE
1153 const char uuencode_usage[] =
1154 "uuencode [OPTION] [INFILE] REMOTEFILE\n"
1155 #ifndef BB_FEATURE_TRIVIAL_HELP
1156 "\nUuencode a file.\n\n"
1158 "\t-m\tuse base64 encoding as of RFC1521\n"
1164 const char wc_usage[] =
1165 "wc [OPTION]... [FILE]...\n"
1166 #ifndef BB_FEATURE_TRIVIAL_HELP
1167 "\nPrint line, word, and byte counts for each FILE, and a total line if\n"
1168 "more than one FILE is specified. With no FILE, read standard input.\n\n"
1170 "\t-c\tprint the byte counts\n"
1171 "\t-l\tprint the newline counts\n"
1173 "\t-L\tprint the length of the longest line\n"
1174 "\t-w\tprint the word counts\n"
1179 #if defined BB_WHICH
1180 const char which_usage[] =
1181 "which [COMMAND ...]\n"
1182 #ifndef BB_FEATURE_TRIVIAL_HELP
1183 "\nLocates a COMMAND.\n"
1188 #if defined BB_WHOAMI
1189 const char whoami_usage[] =
1191 #ifndef BB_FEATURE_TRIVIAL_HELP
1192 "\nPrints the user name associated with the current effective user id.\n"
1198 const char yes_usage[] =
1199 "yes [OPTION]... [STRING]...\n"
1200 #ifndef BB_FEATURE_TRIVIAL_HELP
1201 "\nRepeatedly outputs a line with all specified STRING(s), or `y'.\n"