1/* Modified by Broadcom Corp. Portions Copyright (c) Broadcom Corp, 2012. */ 2/* vi: set sw=8 ts=8: */ 3/* 4 * This file suffers from chronically incorrect tabification 5 * of messages. Before editing this file: 6 * 1. Switch you editor to 8-space tab mode. 7 * 2. Do not use \t in messages, use real tab character. 8 * 3. Start each source line with message as follows: 9 * |<7 spaces>"text with tabs".... 10 */ 11 12#ifndef __BB_USAGE_H__ 13#define __BB_USAGE_H__ 14 15#define addgroup_trivial_usage \ 16 "[-g GID]"USE_FEATURE_ADDUSER_TO_GROUP(" [user_name]")" group_name" 17#define addgroup_full_usage \ 18 "Add a group to the system"USE_FEATURE_ADDUSER_TO_GROUP(" or add an user to a group") \ 19 "\n\nOptions:\n" \ 20 " -g GID Specify gid" 21 22#define adduser_trivial_usage \ 23 "[OPTIONS] user_name" 24#define adduser_full_usage \ 25 "Add a user to the system" \ 26 "\n\nOptions:\n" \ 27 " -h DIR Home directory\n" \ 28 " -g GECOS GECOS field\n" \ 29 " -s SHELL Login shell\n" \ 30 " -G GROUP Add user to existing group\n" \ 31 " -S Create a system user (ignored)\n" \ 32 " -D Do not assign a password (logins still possible via ssh)\n" \ 33 " -H Do not create home directory" 34 35#define adjtimex_trivial_usage \ 36 "[-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]" 37#define adjtimex_full_usage \ 38 "Read and optionally set system timebase parameters.\n" \ 39 "See adjtimex(2)." \ 40 "\n\nOptions:\n" \ 41 " -q Quiet\n" \ 42 " -o offset Time offset, microseconds\n" \ 43 " -f frequency Frequency adjust, integer kernel units (65536 is 1ppm)\n" \ 44 " (positive values make the system clock run faster)\n" \ 45 " -t tick Microseconds per tick, usually 10000\n" \ 46 " -p timeconstant" 47 48#define ar_trivial_usage \ 49 "[-o] [-v] [-p] [-t] [-x] ARCHIVE FILES" 50#define ar_full_usage \ 51 "Extract or list FILES from an ar archive" \ 52 "\n\nOptions:\n" \ 53 " -o Preserve original dates\n" \ 54 " -p Extract to stdout\n" \ 55 " -t List\n" \ 56 " -x Extract\n" \ 57 " -v Verbose" 58 59#define arp_trivial_usage \ 60 "\n" \ 61 "[-vn] [-H type] [-i if] -a [hostname]\n" \ 62 "[-v] [-i if] -d hostname [pub]\n" \ 63 "[-v] [-H type] [-i if] -s hostname hw_addr [temp]\n" \ 64 "[-v] [-H type] [-i if] -s hostname hw_addr [netmask nm] pub\n" \ 65 "[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub\n" 66#define arp_full_usage \ 67 "Manipulate the system ARP cache" \ 68 "\n\nOptions:" \ 69 "\n -a Display (all) hosts" \ 70 "\n -s Set a new ARP entry" \ 71 "\n -d Delete a specified entry" \ 72 "\n -v Verbose" \ 73 "\n -n Don't resolve names" \ 74 "\n -i if Specify network interface (e.g. eth0)" \ 75 "\n -D Read <hwaddr> from given device" \ 76 "\n -A, -p Specify protocol family" \ 77 "\n -H hwtype Specify hardware address type" 78 79#define arping_trivial_usage \ 80 "[-fqbDUA] [-c count] [-w timeout] [-i device] [-s sender] target" 81#define arping_full_usage \ 82 "Ping hosts by ARP requests/replies" \ 83 "\n\nOptions:\n" \ 84 " -f Quit on first ARP reply\n" \ 85 " -q Quiet\n" \ 86 " -b Keep broadcasting, don't go unicast\n" \ 87 " -D Duplicated address detection mode\n" \ 88 " -U Unsolicited ARP mode, update your neighbours\n" \ 89 " -A ARP answer mode, update your neighbours\n" \ 90 " -c count Stop after sending count ARP request packets\n" \ 91 " -w timeout Time to wait for ARP reply, in seconds\n" \ 92 " -I device Outgoing interface name, default is eth0\n" \ 93 " -s sender Set specific sender IP address\n" \ 94 " target Target IP address of ARP request" 95 96#define ash_trivial_usage \ 97 "[FILE]...\n" \ 98 "or: ash -c command [args]..." 99#define ash_full_usage \ 100 "The ash shell (command interpreter)" 101 102#define awk_trivial_usage \ 103 "[OPTION]... [program-text] [FILE ...]" 104#define awk_full_usage \ 105 "Options:\n" \ 106 " -v var=val Set variable\n" \ 107 " -F sep Use 'sep' as field separator\n" \ 108 " -f filename Read program from file" 109 110#define basename_trivial_usage \ 111 "FILE [SUFFIX]" 112#define basename_full_usage \ 113 "Strip directory path and suffixes from FILE.\n" \ 114 "If specified, also remove any trailing SUFFIX." 115#define basename_example_usage \ 116 "$ basename /usr/local/bin/foo\n" \ 117 "foo\n" \ 118 "$ basename /usr/local/bin/\n" \ 119 "bin\n" \ 120 "$ basename /foo/bar.txt .txt\n" \ 121 "bar" 122 123#define bunzip2_trivial_usage \ 124 "[OPTION]... [FILE]" 125#define bunzip2_full_usage \ 126 "Uncompress FILE (or standard input if FILE is '-' or omitted)" \ 127 "\n\nOptions:\n" \ 128 " -c Write output to standard output\n" \ 129 " -f Force" 130 131#define busybox_notes_usage \ 132 "Hello world!\n" 133 134#define bzcat_trivial_usage \ 135 "FILE" 136#define bzcat_full_usage \ 137 "Uncompress to stdout" 138 139#define unlzma_trivial_usage \ 140 "[OPTION]... [FILE]" 141#define unlzma_full_usage \ 142 "Uncompress FILE (or standard input if FILE is '-' or omitted)" \ 143 "\n\nOptions:\n" \ 144 " -c Write output to standard output\n" \ 145 " -f Force" 146 147#define lzmacat_trivial_usage \ 148 "FILE" 149#define lzmacat_full_usage \ 150 "Uncompress to stdout" 151 152#define cal_trivial_usage \ 153 "[-jy] [[month] year]" 154#define cal_full_usage \ 155 "Display a calendar" \ 156 "\n\nOptions:" \ 157 "\n -j Use julian dates" \ 158 "\n -y Display the entire year" 159 160#define cat_trivial_usage \ 161 "[-u] [FILE]..." 162#define cat_full_usage \ 163 "Concatenate FILE(s) and print them to stdout" \ 164 "\n\nOptions:" \ 165 "\n -u Use unbuffered i/o (ignored)" 166#define cat_example_usage \ 167 "$ cat /proc/uptime\n" \ 168 "110716.72 17.67" 169 170#define catv_trivial_usage \ 171 "[-etv] [FILE]..." 172#define catv_full_usage \ 173 "Display nonprinting characters as ^x or M-x" \ 174 "\n\nOptions:\n" \ 175 " -e End each line with $\n" \ 176 " -t Show tabs as ^I\n" \ 177 " -v Don't use ^x or M-x escapes" 178#define chattr_trivial_usage \ 179 "[-R] [-+=AacDdijsStTu] [-v version] files..." 180#define chattr_full_usage \ 181 "Change file attributes on an ext2 fs\n\n" \ 182 "Modifiers:\n" \ 183 " - Remove attributes\n" \ 184 " + Add attributes\n" \ 185 " = Set attributes\n" \ 186 "Attributes:\n" \ 187 " A Don't track atime\n" \ 188 " a Append mode only\n" \ 189 " c Enable compress\n" \ 190 " D Write dir contents synchronously\n" \ 191 " d Do not backup with dump\n" \ 192 " i Cannot be modified (immutable)\n" \ 193 " j Write all data to journal first\n" \ 194 " s Zero disk storage when deleted\n" \ 195 " S Write file contents synchronously\n" \ 196 " t Disable tail-merging of partial blocks with other files\n" \ 197 " u Allow file to be undeleted\n" \ 198 "Options:\n" \ 199 " -R Recursively list subdirectories\n" \ 200 " -v Set the file's version/generation number" 201 202#define chcon_trivial_usage \ 203 "[OPTIONS] CONTEXT FILE...\n" \ 204 " chcon [OPTIONS] [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE...\n" \ 205 " chcon [OPTIONS] --reference=RFILE FILE...\n" 206#define chcon_full_usage \ 207 "Change the security context of each FILE to CONTEXT\n" \ 208 "\n -v, --verbose Verbose" \ 209 "\n -c, --changes Report changes made" \ 210 "\n -h, --no-dereference Affect symlinks instead of their targets" \ 211 "\n -f, --silent, --quiet Suppress most error messages" \ 212 "\n --reference=RFILE Use RFILE's group instead of using a CONTEXT value" \ 213 "\n -u, --user=USER Set user USER in the target security context" \ 214 "\n -r, --role=ROLE Set role ROLE in the target security context" \ 215 "\n -t, --type=TYPE Set type TYPE in the target security context" \ 216 "\n -l, --range=RANGE Set range RANGE in the target security context" \ 217 "\n -R, --recursive Recurse subdirectories" \ 218 219#define chmod_trivial_usage \ 220 "[-R"USE_DESKTOP("cvf")"] MODE[,MODE]... FILE..." 221#define chmod_full_usage \ 222 "Each MODE is one or more of the letters ugoa, one of the\n" \ 223 "symbols +-= and one or more of the letters rwxst" \ 224 "\n\nOptions:" \ 225 "\n -R Recurse directories" \ 226 USE_DESKTOP( \ 227 "\n -c List changed files" \ 228 "\n -v List all files" \ 229 "\n -f Hide errors" \ 230 ) 231#define chmod_example_usage \ 232 "$ ls -l /tmp/foo\n" \ 233 "-rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" \ 234 "$ chmod u+x /tmp/foo\n" \ 235 "$ ls -l /tmp/foo\n" \ 236 "-rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*\n" \ 237 "$ chmod 444 /tmp/foo\n" \ 238 "$ ls -l /tmp/foo\n" \ 239 "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" 240 241#define chgrp_trivial_usage \ 242 "[-RhLHP"USE_DESKTOP("cvf")"]... GROUP FILE..." 243#define chgrp_full_usage \ 244 "Change the group membership of each FILE to GROUP" \ 245 "\n\nOptions:" \ 246 "\n -R Recurse directories" \ 247 "\n -h Affect symlinks instead of symlink targets" \ 248 "\n -L Traverse all symlinks to directories" \ 249 "\n -H Traverse symlinks on command line only" \ 250 "\n -P Do not traverse symlinks (default)" \ 251 USE_DESKTOP( \ 252 "\n -c List changed files" \ 253 "\n -v Verbose" \ 254 "\n -f Hide errors" \ 255 ) 256#define chgrp_example_usage \ 257 "$ ls -l /tmp/foo\n" \ 258 "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \ 259 "$ chgrp root /tmp/foo\n" \ 260 "$ ls -l /tmp/foo\n" \ 261 "-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo\n" 262 263#define chown_trivial_usage \ 264 "[-RhLHP"USE_DESKTOP("cvf")"]... OWNER[<.|:>[GROUP]] FILE..." 265#define chown_full_usage \ 266 "Change the owner and/or group of each FILE to OWNER and/or GROUP" \ 267 "\n\nOptions:" \ 268 "\n -R Recurse directories" \ 269 "\n -h Affect symlinks instead of symlink targets" \ 270 "\n -L Traverse all symlinks to directories" \ 271 "\n -H Traverse symlinks on command line only" \ 272 "\n -P Do not traverse symlinks (default)" \ 273 USE_DESKTOP( \ 274 "\n -c List changed files" \ 275 "\n -v List all files" \ 276 "\n -f Hide errors" \ 277 ) 278#define chown_example_usage \ 279 "$ ls -l /tmp/foo\n" \ 280 "-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo\n" \ 281 "$ chown root /tmp/foo\n" \ 282 "$ ls -l /tmp/foo\n" \ 283 "-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo\n" \ 284 "$ chown root.root /tmp/foo\n" \ 285 "ls -l /tmp/foo\n" \ 286 "-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo\n" 287 288#define chpst_trivial_usage \ 289 "[-vP012] [-u user[:group]] [-U user[:group]] [-e dir] " \ 290 "[-/ dir] [-n nice] [-m bytes] [-d bytes] [-o files] " \ 291 "[-p processes] [-f bytes] [-c bytes] prog args" 292#define chpst_full_usage \ 293 "Change the process state and run specified program" \ 294 "\n\nOptions:\n" \ 295 " -u user[:grp] Set uid and gid\n" \ 296 " -U user[:grp] Set environment variables UID and GID\n" \ 297 " -e dir Set environment variables as specified by files\n" \ 298 " in the directory: file=1st_line_of_file\n" \ 299 " -/ dir Chroot to dir\n" \ 300 " -n inc Add inc to nice value\n" \ 301 " -m bytes Limit data segment, stack segment, locked physical pages,\n" \ 302 " and total of all segment per process to bytes bytes each\n" \ 303 " -d bytes Limit data segment\n" \ 304 " -o n Limit the number of open file descriptors per process to n\n" \ 305 " -p n Limit number of processes per uid to n\n" \ 306 " -f bytes Limit output file size to bytes bytes\n" \ 307 " -c bytes Limit core file size to bytes bytes\n" \ 308 " -v Verbose\n" \ 309 " -P Run prog in a new process group\n" \ 310 " -0 Close standard input\n" \ 311 " -1 Close standard output\n" \ 312 " -2 Close standard error" 313#define setuidgid_trivial_usage \ 314 "account prog args" 315#define setuidgid_full_usage \ 316 "Set uid and gid to account's uid and gid, removing all supplementary\n" \ 317 "groups, then run prog" 318#define envuidgid_trivial_usage \ 319 "account prog args" 320#define envuidgid_full_usage \ 321 "Set $UID to account's uid and $GID to account's gid, then run prog" 322#define envdir_trivial_usage \ 323 "dir prog args" 324#define envdir_full_usage \ 325 "Set various environment variables as specified by files\n" \ 326 "in the directory dir, then run prog" 327#define softlimit_trivial_usage \ 328 "[-a allbytes] [-c corebytes] [-d databytes] [-f filebytes] " \ 329 "[-l lockbytes] [-m membytes] [-o openfiles] [-p processes] " \ 330 "[-r residentbytes] [-s stackbytes] [-t cpusecs] prog args" 331#define softlimit_full_usage \ 332 "Set soft resource limits, then run prog" \ 333 "\n\nOptions:\n" \ 334 " -m n Same as -d n -s n -l n -a n\n" \ 335 " -d n Limit the data segment per process to n bytes\n" \ 336 " -s n Limit the stack segment per process to n bytes\n" \ 337 " -l n Limit the locked physical pages per process to n bytes\n" \ 338 " -a n Limit the total of all segments per process to n bytes\n" \ 339 " -o n Limit the number of open file descriptors per process to n\n" \ 340 " -p n Limit the number of processes per uid to n\n" \ 341 "Options controlling file sizes:\n" \ 342 " -f n Limit output file sizes to n bytes\n" \ 343 " -c n Limit core file sizes to n bytes\n" \ 344 "Efficiency opts:\n" \ 345 " -r n Limit the resident set size to n bytes. This limit is not\n" \ 346 " enforced unless physical memory is full\n" \ 347 " -t n Limit the CPU time to n seconds. This limit is not enforced\n" \ 348 " except that the process receives a SIGXCPU signal after n seconds\n" \ 349 "\n" \ 350 "Some options may have no effect on some operating systems\n" \ 351 "n may be =, indicating that soft limit should be set equal to hard limit" 352 353#define chroot_trivial_usage \ 354 "NEWROOT [COMMAND...]" 355#define chroot_full_usage \ 356 "Run COMMAND with root directory set to NEWROOT" 357#define chroot_example_usage \ 358 "$ ls -l /bin/ls\n" \ 359 "lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox\n" \ 360 "# mount /dev/hdc1 /mnt -t minix\n" \ 361 "# chroot /mnt\n" \ 362 "# ls -l /bin/ls\n" \ 363 "-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*\n" 364 365#define chvt_trivial_usage \ 366 "N" 367#define chvt_full_usage \ 368 "Change the foreground virtual terminal to /dev/ttyN" 369 370#define cksum_trivial_usage \ 371 "FILES..." 372#define cksum_full_usage \ 373 "Calculate the CRC32 checksums of FILES" 374 375#define clear_trivial_usage \ 376 "" 377#define clear_full_usage \ 378 "Clear screen" 379 380#define cmp_trivial_usage \ 381 "[-l] [-s] FILE1 [FILE2" USE_DESKTOP(" [SKIP1 [SKIP2]") "]]" 382#define cmp_full_usage \ 383 "Compares FILE1 vs stdin if FILE2 is not specified" \ 384 "\n\nOptions:\n" \ 385 " -l Write the byte numbers (decimal) and values (octal)\n" \ 386 " for all differing bytes\n" \ 387 " -s Quiet" 388 389#define comm_trivial_usage \ 390 "[-123] FILE1 FILE2" 391#define comm_full_usage \ 392 "Compare FILE1 to FILE2, or to stdin if - is specified" \ 393 "\n\nOptions:\n" \ 394 " -1 Suppress lines unique to FILE1\n" \ 395 " -2 Suppress lines unique to FILE2\n" \ 396 " -3 Suppress lines common to both files" 397 398#define bbconfig_trivial_usage \ 399 "" 400#define bbconfig_full_usage \ 401 "Print the config file which built busybox" 402 403#define bbsh_trivial_usage \ 404 "[FILE]...\n" \ 405 "or: bbsh -c command [args]..." 406#define bbsh_full_usage \ 407 "The bbsh shell (command interpreter)" 408 409#define chrt_trivial_usage \ 410 "[OPTION]... [prio] [pid | command [arg]...]" 411#define chrt_full_usage \ 412 "manipulate real-time attributes of a process" \ 413 "\n\nOptions:\n" \ 414 " -p operate on pid\n" \ 415 " -r set scheduling policy to SCHED_RR\n" \ 416 " -f set scheduling policy to SCHED_FIFO\n" \ 417 " -o set scheduling policy to SCHED_OTHER\n" \ 418 " -m show min and max priorities" 419 420#define chrt_example_usage \ 421 "$ chrt -r 4 sleep 900; x=$!\n" \ 422 "$ chrt -f -p 3 $x\n" \ 423 "You need CAP_SYS_NICE privileges to set scheduling attributes of a process" 424 425#define cp_trivial_usage \ 426 "[OPTION]... SOURCE DEST" 427#define cp_full_usage \ 428 "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY" \ 429 "\n\nOptions:" \ 430 "\n -a Same as -dpR" \ 431 USE_SELINUX( \ 432 "\n -c Preserves security context" \ 433 ) \ 434 "\n -d,-P Preserve links" \ 435 "\n -H,-L Dereference all symlinks (default)" \ 436 "\n -p Preserve file attributes if possible" \ 437 "\n -f Force overwrite" \ 438 "\n -i Prompt before overwrite" \ 439 "\n -R,-r Recurse directories" \ 440 "\n -l,-s Create (sym)links" 441 442#define cpio_trivial_usage \ 443 "-[dimtuv][F cpiofile]" 444#define cpio_full_usage \ 445 "Extract or list files from a cpio archive\n" \ 446 "Main operation mode:\n" \ 447 " d Make leading directories\n" \ 448 " i Extract\n" \ 449 " m Preserve mtime\n" \ 450 " t List\n" \ 451 " v Verbose\n" \ 452 " u Unconditional overwrite\n" \ 453 " F Input from file" 454 455#define crond_trivial_usage \ 456 "-d[#] -c crondir -f -b" 457#define crond_full_usage \ 458 " -d [#] -l [#] -S -L logfile -f -b -c dir\n" \ 459 " -d num Debug level\n" \ 460 " -l num Log level (8 - default)\n" \ 461 " -S Log to syslogd (default)\n" \ 462 " -L file Log to file\n" \ 463 " -f Run in foreground\n" \ 464 " -b Run in background (default)\n" \ 465 " -c dir Working dir" 466 467#define crontab_trivial_usage \ 468 "[-c dir] {file|-}|[-u|-l|-e|-d user]" 469#define crontab_full_usage \ 470 " file [opts] Replace crontab from file\n" \ 471 " - [opts] Replace crontab from stdin\n" \ 472 " -u user Specify user\n" \ 473 " -l [user] List crontab for user\n" \ 474 " -e [user] Edit crontab for user\n" \ 475 " -d [user] Delete crontab for user\n" \ 476 " -c dir Specify crontab directory" 477 478#define cryptpw_trivial_usage \ 479 "[-a des|md5] [string]" 480#define cryptpw_full_usage \ 481 "Outputs crypted string.\n" \ 482 "If string isn't supplied on cmdline, reads it from stdin.\n" \ 483 "\nOptions:" \ 484 "\n -a Algorithm to use (default: md5)" 485 486#define cut_trivial_usage \ 487 "[OPTION]... [FILE]..." 488#define cut_full_usage \ 489 "Print selected fields from each input FILE to standard output" \ 490 "\n\nOptions:\n" \ 491 " -b LIST Output only bytes from LIST\n" \ 492 " -c LIST Output only characters from LIST\n" \ 493 " -d CHAR Use CHAR instead of tab as the field delimiter\n" \ 494 " -s Output only the lines containing delimiter\n" \ 495 " -f N Print only these fields\n" \ 496 " -n Ignored" 497#define cut_example_usage \ 498 "$ echo \"Hello world\" | cut -f 1 -d ' '\n" \ 499 "Hello\n" \ 500 "$ echo \"Hello world\" | cut -f 2 -d ' '\n" \ 501 "world\n" 502 503#define date_trivial_usage \ 504 "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]" 505#define date_full_usage \ 506 "Display current time in the given FORMAT, or set system date" \ 507 "\n\nOptions:\n" \ 508 " -R Outputs RFC-822 compliant date string\n" \ 509 " -d STRING Displays time described by STRING, not 'now'\n" \ 510 USE_FEATURE_DATE_ISOFMT( \ 511 " -I[TIMESPEC] Outputs an ISO-8601 compliant date/time string\n" \ 512 " TIMESPEC='date' (or missing) for date only,\n" \ 513 " 'hours', 'minutes', or 'seconds' for date and,\n" \ 514 " time to the indicated precision\n" \ 515 " -D hint Use 'hint' as date format, via strptime()\n" \ 516 ) \ 517 " -s Sets time described by STRING\n" \ 518 " -r FILE Displays the last modification time of FILE\n" \ 519 " -u Prints or sets Coordinated Universal Time" 520#define date_example_usage \ 521 "$ date\n" \ 522 "Wed Apr 12 18:52:41 MDT 2000\n" 523 524#define dc_trivial_usage \ 525 "expression ..." 526#define dc_full_usage \ 527 "This is a Tiny RPN calculator that understands the\n" \ 528 "following operations: +, add, -, sub, *, mul, /, div, %, mod, " \ 529 "**, exp, and, or, not, eor.\n" \ 530 "For example: 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16." \ 531 "\n\nOptions:\n" \ 532 "p - Prints the value on the top of the stack, without altering the stack\n" \ 533 "f - Prints the entire contents of the stack without altering anything\n" \ 534 "o - Pops the value off the top of the stack and uses it to set the output radix\n" \ 535 " Only 10 and 16 are supported" 536#define dc_example_usage \ 537 "$ dc 2 2 + p\n" \ 538 "4\n" \ 539 "$ dc 8 8 \\* 2 2 + / p\n" \ 540 "16\n" \ 541 "$ dc 0 1 and p\n" \ 542 "0\n" \ 543 "$ dc 0 1 or p\n" \ 544 "1\n" \ 545 "$ echo 72 9 div 8 mul p | dc\n" \ 546 "64\n" 547 548#define dd_trivial_usage \ 549 "[if=FILE] [of=FILE] " USE_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n" \ 550 " [seek=N]" USE_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync]") 551#define dd_full_usage \ 552 "Copy a file with converting and formatting" \ 553 "\n\nOptions:\n" \ 554 " if=FILE Read from FILE instead of stdin\n" \ 555 " of=FILE Write to FILE instead of stdout\n" \ 556 " bs=N Read and write N bytes at a time\n" \ 557 USE_FEATURE_DD_IBS_OBS( \ 558 " ibs=N Read N bytes at a time\n") \ 559 USE_FEATURE_DD_IBS_OBS( \ 560 " obs=N Write N bytes at a time\n") \ 561 " count=N Copy only N input blocks\n" \ 562 " skip=N Skip N input blocks\n" \ 563 " seek=N Skip N output blocks\n" \ 564 USE_FEATURE_DD_IBS_OBS( \ 565 " conv=notrunc Don't truncate output file\n" \ 566 " conv=noerror Continue after read errors\n" \ 567 " conv=sync Pad blocks with zeros\n") \ 568 "\n" \ 569 "Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),\n" \ 570 "MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)" 571#define dd_example_usage \ 572 "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n" \ 573 "4+0 records in\n" \ 574 "4+0 records out\n" 575 576#define deallocvt_trivial_usage \ 577 "[N]" 578#define deallocvt_full_usage \ 579 "Deallocate unused virtual terminal /dev/ttyN" 580 581#define delgroup_trivial_usage \ 582 USE_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP" 583#define delgroup_full_usage \ 584 "Delete group GROUP from the system" \ 585 USE_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP") 586 587#define deluser_trivial_usage \ 588 "USER" 589#define deluser_full_usage \ 590 "Delete user USER from the system" 591 592#define devfsd_trivial_usage \ 593 "mntpnt [-v]" \ 594 USE_DEVFSD_FG_NP("[-fg][-np]" ) 595#define devfsd_full_usage \ 596 "Manage devfs permissions and old device name symlinks" \ 597 "\n\nOptions:" \ 598 "\n mntpnt The mount point where devfs is mounted" \ 599 "\n -v Print the protocol version numbers for devfsd" \ 600 "\n and the kernel-side protocol version and exits" \ 601 USE_DEVFSD_FG_NP( \ 602 "\n -fg Run the daemon in the foreground" \ 603 "\n -np Exit after parsing the configuration file" \ 604 "\n and processing synthetic REGISTER events," \ 605 "\n do not poll for events") 606 607#define df_trivial_usage \ 608 "[-" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILESYSTEM ...]" 609#define df_full_usage \ 610 "Print the filesystem space used and space available" \ 611 USE_FEATURE_HUMAN_READABLE( \ 612 "\n\nOptions control size display:" \ 613 "\n -h Human readable (e.g. 1K 243M 2G)" \ 614 "\n -m 1024*1024 blocks" \ 615 "\n -k 1024 blocks") \ 616 SKIP_FEATURE_HUMAN_READABLE( \ 617 "\n\nOptions:" \ 618 "\n -k Ignored") 619#define df_example_usage \ 620 "$ df\n" \ 621 "Filesystem 1k-blocks Used Available Use% Mounted on\n" \ 622 "/dev/sda3 8690864 8553540 137324 98% /\n" \ 623 "/dev/sda1 64216 36364 27852 57% /boot\n" \ 624 "$ df /dev/sda3\n" \ 625 "Filesystem 1k-blocks Used Available Use% Mounted on\n" \ 626 "/dev/sda3 8690864 8553540 137324 98% /\n" 627 628#define dhcprelay_trivial_usage \ 629 "[client_device_list] [server_device]" 630#define dhcprelay_full_usage \ 631 "Relay dhcp requests from client devices to server device" 632 633#define dhcprelay_trivial_usage \ 634 "[client_device_list] [server_device]" 635#define dhcprelay_full_usage \ 636 "Relay dhcp requests from client devices to server device" 637 638#define diff_trivial_usage \ 639 "[-abdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2" 640#define diff_full_usage \ 641 "Compare files line by line and output the differences between them.\n" \ 642 "This diff implementation only supports unified diffs." \ 643 "\n\nOptions:\n" \ 644 " -a Treat all files as text\n" \ 645 " -b Ignore changes in the amount of whitespace\n" \ 646 " -d Try hard to find a smaller set of changes\n" \ 647 " -i Ignore case differences\n" \ 648 " -L Use LABEL instead of the filename in the unified header\n" \ 649 " -N Treat absent files as empty\n" \ 650 " -q Output only whether files differ\n" \ 651 " -r Recursively compare subdirectories\n" \ 652 " -S Start with FILE when comparing directories\n" \ 653 " -T Make tabs line up by prefixing a tab when necessary\n" \ 654 " -s Report when two files are the same\n" \ 655 " -t Expand tabs to spaces in output\n" \ 656 " -U Output LINES lines of context\n" \ 657 " -w Ignore all whitespace" 658 659#define dirname_trivial_usage \ 660 "FILENAME" 661#define dirname_full_usage \ 662 "Strip non-directory suffix from FILENAME" 663#define dirname_example_usage \ 664 "$ dirname /tmp/foo\n" \ 665 "/tmp\n" \ 666 "$ dirname /tmp/foo/\n" \ 667 "/tmp\n" 668 669#define dmesg_trivial_usage \ 670 "[-c] [-n LEVEL] [-s SIZE]" 671#define dmesg_full_usage \ 672 "Print or control the kernel ring buffer" \ 673 "\n\nOptions:\n" \ 674 " -c Clears the ring buffer's contents after printing\n" \ 675 " -n LEVEL Sets console logging level\n" \ 676 " -s SIZE Use a buffer of size SIZE" 677 678#define dnsd_trivial_usage \ 679 "[-c config] [-t seconds] [-p port] [-i iface-ip] [-d]" 680#define dnsd_full_usage \ 681 "Small and static DNS server daemon" \ 682 "\n\nOptions:\n" \ 683 " -c Config filename\n" \ 684 " -t TTL in seconds\n" \ 685 " -p Listening port\n" \ 686 " -i Listening ip (default all)\n" \ 687 " -d Daemonize" 688 689#define dos2unix_trivial_usage \ 690 "[option] [FILE]" 691#define dos2unix_full_usage \ 692 "Convert FILE from dos format to unix format. When no option\n" \ 693 "is given, the input is converted to the opposite output format.\n" \ 694 "When no file is given, use stdin for input and stdout for output." \ 695 "\n\nOptions:\n" \ 696 " -u Output will be in UNIX format\n" \ 697 " -d Output will be in DOS format" 698 699#define dpkg_trivial_usage \ 700 "[-ilCPru] [-F option] package_name" 701#define dpkg_full_usage \ 702 "Install, remove and manage Debian packages" \ 703 "\n\nOptions:\n" \ 704 " -i Install the package\n" \ 705 " -l List of installed packages\n" \ 706 " -C Configure an unpackaged package\n" \ 707 " -F depends Ignore dependency problems\n" \ 708 " -P Purge all files of a package\n" \ 709 " -r Remove all but the configuration files for a package\n" \ 710 " -u Unpack a package, but don't configure it" 711 712#define dpkg_deb_trivial_usage \ 713 "[-cefxX] FILE [argument]" 714#define dpkg_deb_full_usage \ 715 "Perform actions on Debian packages (.debs)" \ 716 "\n\nOptions:\n" \ 717 " -c List contents of filesystem tree\n" \ 718 " -e Extract control files to [argument] directory\n" \ 719 " -f Display control field name starting with [argument]\n" \ 720 " -x Extract packages filesystem tree to directory\n" \ 721 " -X Verbose extract" 722#define dpkg_deb_example_usage \ 723 "$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp\n" 724 725#define du_trivial_usage \ 726 "[-aHLdclsx" USE_FEATURE_HUMAN_READABLE("hm") "k] [FILE]..." 727#define du_full_usage \ 728 "Summarize disk space used for each FILE and/or directory.\n" \ 729 "Disk space is printed in units of " \ 730 USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("1024") \ 731 SKIP_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("512") \ 732 " bytes." \ 733 "\n\nOptions:\n" \ 734 " -a Show sizes of files in addition to directories\n" \ 735 " -H Follow symlinks that are FILE command line args\n" \ 736 " -L Follow all symlinks encountered\n" \ 737 " -d N Limit output to directories (and files with -a) of depth < N\n" \ 738 " -c Output a grand total\n" \ 739 " -l Count sizes many times if hard linked\n" \ 740 " -s Display only a total for each argument\n" \ 741 " -x Skip directories on different filesystems\n" \ 742 USE_FEATURE_HUMAN_READABLE( \ 743 " -h Print sizes in human readable format (e.g., 1K 243M 2G )\n" \ 744 " -m Print sizes in megabytes\n" \ 745 ) \ 746 " -k Print sizes in kilobytes" \ 747 USE_FEATURE_DU_DEFAULT_BLOCKSIZE_1K("(default)") 748#define du_example_usage \ 749 "$ du\n" \ 750 "16 ./CVS\n" \ 751 "12 ./kernel-patches/CVS\n" \ 752 "80 ./kernel-patches\n" \ 753 "12 ./tests/CVS\n" \ 754 "36 ./tests\n" \ 755 "12 ./scripts/CVS\n" \ 756 "16 ./scripts\n" \ 757 "12 ./docs/CVS\n" \ 758 "104 ./docs\n" \ 759 "2417 .\n" 760 761#define dumpkmap_trivial_usage \ 762 "> keymap" 763#define dumpkmap_full_usage \ 764 "Print out a binary keyboard translation table to standard output" 765#define dumpkmap_example_usage \ 766 "$ dumpkmap > keymap\n" 767 768#define dumpleases_trivial_usage \ 769 "[-r|-a] [-f LEASEFILE]" 770#define dumpleases_full_usage \ 771 "Display DHCP leases granted by udhcpd" \ 772 "\n\nOptions:\n" \ 773 " -f, --file=FILENAME Leases file to load\n" \ 774 " -r, --remaining Interpret lease times as time remaining\n" \ 775 " -a, --absolute Interpret lease times as expire time" 776 777#define e2fsck_trivial_usage \ 778 "[-panyrcdfvstDFSV] [-b superblock] [-B blocksize] " \ 779 "[-I inode_buffer_blocks] [-P process_inode_size] " \ 780 "[-l|-L bad_blocks_file] [-C fd] [-j external_journal] " \ 781 "[-E extended-options] device" 782#define e2fsck_full_usage \ 783 "Check ext2/ext3 file system" \ 784 "\n\nOptions:\n" \ 785 " -p Automatic repair (no questions)\n" \ 786 " -n Make no changes to the filesystem\n" \ 787 " -y Assume 'yes' to all questions\n" \ 788 " -c Check for bad blocks and add them to the badblock list\n" \ 789 " -f Force checking even if filesystem is marked clean\n" \ 790 " -v Verbose\n" \ 791 " -b superblock Use alternative superblock\n" \ 792 " -B blocksize Force blocksize when looking for superblock\n" \ 793 " -j journal Set location of the external journal\n" \ 794 " -l file Add to badblocks list\n" \ 795 " -L file Set badblocks list" 796 797#define echo_trivial_usage \ 798 USE_FEATURE_FANCY_ECHO("[-neE] ") "[ARG ...]" 799#define echo_full_usage \ 800 "Print the specified ARGs to stdout" \ 801 USE_FEATURE_FANCY_ECHO( \ 802 "\n\nOptions:\n" \ 803 " -n Suppress trailing newline\n" \ 804 " -e Interpret backslash-escaped characters (i.e., \\t=tab)\n" \ 805 " -E Disable interpretation of backslash-escaped characters" \ 806 ) 807#define echo_example_usage \ 808 "$ echo \"Erik is cool\"\n" \ 809 "Erik is cool\n" \ 810 USE_FEATURE_FANCY_ECHO("$ echo -e \"Erik\\nis\\ncool\"\n" \ 811 "Erik\n" \ 812 "is\n" \ 813 "cool\n" \ 814 "$ echo \"Erik\\nis\\ncool\"\n" \ 815 "Erik\\nis\\ncool\n") 816 817#define eject_trivial_usage \ 818 "[-t] [-T] [DEVICE]" 819#define eject_full_usage \ 820 "Eject specified DEVICE (or default /dev/cdrom)" \ 821 "\n\nOptions:\n" \ 822 " -t Close tray\n" \ 823 " -T Open/close tray (toggle)" 824 825#define ed_trivial_usage "" 826#define ed_full_usage "" 827 828#define env_trivial_usage \ 829 "[-iu] [-] [name=value]... [command]" 830#define env_full_usage \ 831 "Print the current environment or run a program after setting\n" \ 832 "up the specified environment" \ 833 "\n\nOptions:\n" \ 834 " -, -i Start with an empty environment\n" \ 835 " -u Remove variable from the environment" 836 837#define ether_wake_trivial_usage \ 838 "[-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC" 839#define ether_wake_full_usage \ 840 "Send a magic packet to wake up sleeping machines.\n" \ 841 "MAC must be a station address (00:11:22:33:44:55) or\n" \ 842 "a hostname with a known 'ethers' entry." \ 843 "\n\nOptions:\n" \ 844 " -b Send wake-up packet to the broadcast address\n" \ 845 " -i iface Use interface ifname instead of the default \"eth0\"\n" \ 846 " -p pass Append the four or six byte password PW to the packet" 847 848#define expand_trivial_usage \ 849 "[-i] [-t NUM] [FILE|-]" 850#define expand_full_usage \ 851 "Convert tabs to spaces, writing to standard output." \ 852 "\n\nOptions:" \ 853 "\n -i" USE_FEATURE_EXPAND_LONG_OPTIONS(",--initial") \ 854 " Do not convert tabs after non blanks" \ 855 "\n -t" USE_FEATURE_EXPAND_LONG_OPTIONS(",--tabs=N") \ 856 " Tabstops every N chars" 857 858#define expr_trivial_usage \ 859 "EXPRESSION" 860#define expr_full_usage \ 861 "Print the value of EXPRESSION to standard output.\n\n" \ 862 "EXPRESSION may be:\n" \ 863 " ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2\n" \ 864 " ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0\n" \ 865 " ARG1 < ARG2 ARG1 is less than ARG2\n" \ 866 " ARG1 <= ARG2 ARG1 is less than or equal to ARG2\n" \ 867 " ARG1 = ARG2 ARG1 is equal to ARG2\n" \ 868 " ARG1 != ARG2 ARG1 is unequal to ARG2\n" \ 869 " ARG1 >= ARG2 ARG1 is greater than or equal to ARG2\n" \ 870 " ARG1 > ARG2 ARG1 is greater than ARG2\n" \ 871 " ARG1 + ARG2 Sum of ARG1 and ARG2\n" \ 872 " ARG1 - ARG2 Difference of ARG1 and ARG2\n" \ 873 " ARG1 * ARG2 Product of ARG1 and ARG2\n" \ 874 " ARG1 / ARG2 Quotient of ARG1 divided by ARG2\n" \ 875 " ARG1 % ARG2 Remainder of ARG1 divided by ARG2\n" \ 876 " STRING : REGEXP Anchored pattern match of REGEXP in STRING\n" \ 877 " match STRING REGEXP Same as STRING : REGEXP\n" \ 878 " substr STRING POS LENGTH Substring of STRING, POS counted from 1\n" \ 879 " index STRING CHARS Index in STRING where any CHARS is found, or 0\n" \ 880 " length STRING Length of STRING\n" \ 881 " quote TOKEN Interpret TOKEN as a string, even if\n" \ 882 " it is a keyword like 'match' or an\n" \ 883 " operator like '/'\n" \ 884 " (EXPRESSION) Value of EXPRESSION\n\n" \ 885 "Beware that many operators need to be escaped or quoted for shells.\n" \ 886 "Comparisons are arithmetic if both ARGs are numbers, else\n" \ 887 "lexicographical. Pattern matches return the string matched between\n" \ 888 "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \ 889 "of characters matched or 0." 890 891#define fakeidentd_trivial_usage \ 892 "[-fiw] [-b ADDR] [STRING]" 893#define fakeidentd_full_usage \ 894 "Provide fake ident (auth) service" \ 895 "\n\nOptions:" \ 896 "\n -f Run in foreground" \ 897 "\n -i Inetd mode" \ 898 "\n -w Inetd 'wait' mode" \ 899 "\n -b ADDR Bind to specified address" \ 900 "\n STRING Ident answer string (default is 'nobody')" 901 902#define false_trivial_usage \ 903 "" 904#define false_full_usage \ 905 "Return an exit code of FALSE (1)" 906#define false_example_usage \ 907 "$ false\n" \ 908 "$ echo $?\n" \ 909 "1\n" 910 911#define fbset_trivial_usage \ 912 "[options] [mode]" 913#define fbset_full_usage \ 914 "Show and modify frame buffer settings" 915#define fbset_example_usage \ 916 "$ fbset\n" \ 917 "mode \"1024x768-76\"\n" \ 918 " # D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \ 919 " geometry 1024 768 1024 768 16\n" \ 920 " timings 12714 128 32 16 4 128 4\n" \ 921 " accel false\n" \ 922 " rgba 5/11,6/5,5/0,0/0\n" \ 923 "endmode\n" 924 925#define fdflush_trivial_usage \ 926 "DEVICE" 927#define fdflush_full_usage \ 928 "Force floppy disk drive to detect disk change" 929 930#define fdformat_trivial_usage \ 931 "[-n] DEVICE" 932#define fdformat_full_usage \ 933 "Format floppy disk" \ 934 "\n\nOptions:\n" \ 935 " -n Don't verify after format" 936 937#define fdisk_trivial_usage \ 938 "[-luv] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK" 939#define fdisk_full_usage \ 940 "Change partition table" \ 941 "\n\nOptions:\n" \ 942 " -l List partition table(s)\n" \ 943 " -u Give Start and End in sector (instead of cylinder) units\n" \ 944 " -s PARTITION Give partition size(s) in blocks\n" \ 945 " -b 2048 (for certain MO disks) use 2048-byte sectors\n" \ 946 " -C CYLINDERS Set the number of cylinders\n" \ 947 " -H HEADS Set the number of heads\n" \ 948 " -S SECTORS Set the number of sectors\n" \ 949 " -v Give fdisk version" 950 951#define find_trivial_usage \ 952 "[PATH...] [EXPRESSION]" 953#define find_full_usage \ 954 "Search for files in a directory hierarchy. The default PATH is\n" \ 955 "the current directory, default EXPRESSION is '-print'\n" \ 956 "\nEXPRESSION may consist of:" \ 957 "\n -follow Dereference symlinks" \ 958 USE_FEATURE_FIND_XDEV( \ 959 "\n -xdev Don't descend directories on other filesystems") \ 960 USE_FEATURE_FIND_MAXDEPTH( \ 961 "\n -maxdepth N Descend at most N levels. -maxdepth 0 applies" \ 962 "\n tests/actions to command line arguments only") \ 963 "\n -name PATTERN File name (w/o directory name) matches PATTERN" \ 964 USE_FEATURE_FIND_PATH( \ 965 "\n -path PATTERN Path matches PATTERN") \ 966 USE_FEATURE_FIND_REGEX( \ 967 "\n -regex PATTERN Path matches regex PATTERN") \ 968 USE_FEATURE_FIND_TYPE( \ 969 "\n -type X File type is X (X is one of: f,d,l,b,c,...)") \ 970 USE_FEATURE_FIND_PERM( \ 971 "\n -perm NNN Permissions match any of (+NNN), all of (-NNN)," \ 972 "\n or exactly (NNN)") \ 973 USE_FEATURE_FIND_MTIME( \ 974 "\n -mtime DAYS Modified time is greater than (+N), less than (-N)," \ 975 "\n or exactly (N) days") \ 976 USE_FEATURE_FIND_MMIN( \ 977 "\n -mmin MINS Modified time is greater than (+N), less than (-N)," \ 978 "\n or exactly (N) minutes") \ 979 USE_FEATURE_FIND_NEWER( \ 980 "\n -newer FILE Modified time is more recent than FILE's") \ 981 USE_FEATURE_FIND_INUM( \ 982 "\n -inum N File has inode number N") \ 983 USE_FEATURE_FIND_USER( \ 984 "\n -user NAME File is owned by user NAME (numeric user ID allowed)") \ 985 USE_FEATURE_FIND_GROUP( \ 986 "\n -group NAME File belongs to group NAME (numeric group ID allowed)") \ 987 USE_FEATURE_FIND_DEPTH( \ 988 "\n -depth Process directory name after traversing it") \ 989 USE_FEATURE_FIND_SIZE( \ 990 "\n -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))." \ 991 "\n +/-N: file size is bigger/smaller than N") \ 992 "\n -print Print (default and assumed)" \ 993 USE_FEATURE_FIND_PRINT0( \ 994 "\n -print0 Delimit output with null characters rather than" \ 995 "\n newlines") \ 996 USE_FEATURE_FIND_CONTEXT ( \ 997 "\n -context File has specified security context") \ 998 USE_FEATURE_FIND_EXEC( \ 999 "\n -exec CMD ARG ; Execute CMD with all instances of {} replaced by the" \ 1000 "\n matching files") \ 1001 USE_FEATURE_FIND_PRUNE( \ 1002 "\n -prune Stop traversing current subtree") \ 1003 USE_FEATURE_FIND_DELETE( \ 1004 "\n -delete Delete files, turns on -depth option") \ 1005 USE_FEATURE_FIND_PAREN( \ 1006 "\n (EXPR) Group an expression") \ 1007 1008#define find_example_usage \ 1009 "$ find / -name passwd\n" \ 1010 "/etc/passwd\n" 1011 1012#define fold_trivial_usage \ 1013 "[-bs] [-w WIDTH] [FILE]" 1014#define fold_full_usage \ 1015 "Wrap input lines in each FILE (standard input by default), writing to\n" \ 1016 "standard output" \ 1017 "\n\nOptions:\n" \ 1018 " -b Count bytes rather than columns\n" \ 1019 " -s Break at spaces\n" \ 1020 " -w Use WIDTH columns instead of 80" 1021 1022#define free_trivial_usage \ 1023 "" 1024#define free_full_usage \ 1025 "Display the amount of free and used system memory" 1026#define free_example_usage \ 1027 "$ free\n" \ 1028 " total used free shared buffers\n" \ 1029 " Mem: 257628 248724 8904 59644 93124\n" \ 1030 " Swap: 128516 8404 120112\n" \ 1031 "Total: 386144 257128 129016\n" \ 1032 1033#define freeramdisk_trivial_usage \ 1034 "DEVICE" 1035#define freeramdisk_full_usage \ 1036 "Free all memory used by the specified ramdisk" 1037#define freeramdisk_example_usage \ 1038 "$ freeramdisk /dev/ram2\n" 1039 1040#define fsck_trivial_usage \ 1041 "[-ANPRTV] [-C fd] [-t fstype] [fs-options] [filesys ...]" 1042#define fsck_full_usage \ 1043 "Check and repair filesystems" \ 1044 "\n\nOptions:\n" \ 1045 " -A Walk /etc/fstab and check all filesystems\n" \ 1046 " -N Don't execute, just show what would be done\n" \ 1047 " -P When using -A, check filesystems in parallel\n" \ 1048 " -R When using -A, skip the root filesystem\n" \ 1049 " -T Don't show title on startup\n" \ 1050 " -V Verbose\n" \ 1051 " -C n Write status information to specified filedescriptor\n" \ 1052 " -t type List of filesystem types to check" 1053 1054#define fsck_minix_trivial_usage \ 1055 "[-larvsmf] /dev/name" 1056#define fsck_minix_full_usage \ 1057 "Perform a consistency check for MINIX filesystems" \ 1058 "\n\nOptions:\n" \ 1059 " -l Lists all filenames\n" \ 1060 " -r Perform interactive repairs\n" \ 1061 " -a Perform automatic repairs\n" \ 1062 " -v Verbose\n" \ 1063 " -s Outputs super-block information\n" \ 1064 " -m Activates MINIX-like \"mode not cleared\" warnings\n" \ 1065 " -f Force file system check" 1066 1067#define ftpget_trivial_usage \ 1068 "[options] remote-host local-file remote-file" 1069#define ftpget_full_usage \ 1070 "Retrieve a remote file via FTP" \ 1071 "\n\nOptions:\n" \ 1072 " -c, --continue Continue a previous transfer\n" \ 1073 " -v, --verbose Verbose\n" \ 1074 " -u, --username Username to be used\n" \ 1075 " -p, --password Password to be used\n" \ 1076 " -P, --port Port number to be used" 1077 1078#define ftpput_trivial_usage \ 1079 "[options] remote-host remote-file local-file" 1080#define ftpput_full_usage \ 1081 "Store a local file on a remote machine via FTP" \ 1082 "\n\nOptions:\n" \ 1083 " -v, --verbose Verbose\n" \ 1084 " -u, --username Username to be used\n" \ 1085 " -p, --password Password to be used\n" \ 1086 " -P, --port Port number to be used" 1087 1088#define fuser_trivial_usage \ 1089 "[options] file OR port/proto" 1090#define fuser_full_usage \ 1091 "Options:\n" \ 1092 " -m Show all processes on the same mounted fs\n" \ 1093 " -k Kill all processes that match\n" \ 1094 " -s Don't print or kill anything\n" \ 1095 " -4 When using port/proto only search IPv4 space\n" \ 1096 " -6 When using port/proto only search IPv6 space\n" \ 1097 " -SIGNAL When used with -k, this signal will be used to kill" 1098 1099#define getenforce_trivial_usage 1100#define getenforce_full_usage 1101 1102#define getopt_trivial_usage \ 1103 "[OPTIONS]..." 1104#define getopt_full_usage \ 1105 "Parse command options\n" \ 1106 " -a, --alternative Allow long options starting with single -\n" \ 1107 " -l, --longoptions=longopts Long options to be recognized\n" \ 1108 " -n, --name=progname The name under which errors are reported\n" \ 1109 " -o, --options=optstring Short options to be recognized\n" \ 1110 " -q, --quiet Disable error reporting by getopt(3)\n" \ 1111 " -Q, --quiet-output No normal output\n" \ 1112 " -s, --shell=shell Set shell quoting conventions\n" \ 1113 " -T, --test Test for getopt(1) version\n" \ 1114 " -u, --unquoted Do not quote the output" 1115#define getopt_example_usage \ 1116 "$ cat getopt.test\n" \ 1117 "#!/bin/sh\n" \ 1118 "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \ 1119 " -n 'example.busybox' -- \"$@\"`\n" \ 1120 "if [ $? != 0 ]; then exit 1; fi\n" \ 1121 "eval set -- \"$GETOPT\"\n" \ 1122 "while true; do\n" \ 1123 " case $1 in\n" \ 1124 " -a|--a-long) echo \"Option a\"; shift;;\n" \ 1125 " -b|--b-long) echo \"Option b, argument '$2'\"; shift 2;;\n" \ 1126 " -c|--c-long)\n" \ 1127 " case \"$2\" in\n" \ 1128 " \"\") echo \"Option c, no argument\"; shift 2;;\n" \ 1129 " *) echo \"Option c, argument '$2'\"; shift 2;;\n" \ 1130 " esac;;\n" \ 1131 " --) shift; break;;\n" \ 1132 " *) echo \"Internal error!\"; exit 1;;\n" \ 1133 " esac\n" \ 1134 "done\n" 1135 1136#define getsebool_trivial_usage \ 1137 "-a or getsebool boolean..." 1138#define getsebool_full_usage \ 1139 " -a Show all SELinux booleans" 1140 1141#define getty_trivial_usage \ 1142 "[OPTIONS]... baud_rate,... line [termtype]" 1143#define getty_full_usage \ 1144 "Open a tty, prompt for a login name, then invoke /bin/login" \ 1145 "\n\nOptions:\n" \ 1146 " -h Enable hardware (RTS/CTS) flow control\n" \ 1147 " -i Do not display /etc/issue before running login\n" \ 1148 " -L Local line, so do not do carrier detect\n" \ 1149 " -m Get baud rate from modem's CONNECT status message\n" \ 1150 " -w Wait for a CR or LF before sending /etc/issue\n" \ 1151 " -n Do not prompt the user for a login name\n" \ 1152 " -f issue_file Display issue_file instead of /etc/issue\n" \ 1153 " -l login_app Invoke login_app instead of /bin/login\n" \ 1154 " -t timeout Terminate after timeout if no username is read\n" \ 1155 " -I initstring Sets the init string to send before anything else\n" \ 1156 " -H login_host Log login_host into the utmp file as the hostname" 1157 1158#define grep_trivial_usage \ 1159 "[-HhrilLnqvso" \ 1160 USE_DESKTOP("w") \ 1161 "eF" \ 1162 USE_FEATURE_GREP_EGREP_ALIAS("E") \ 1163 USE_FEATURE_GREP_CONTEXT("ABC") \ 1164 "] PATTERN [FILEs...]" 1165#define grep_full_usage \ 1166 "Search for PATTERN in each FILE or standard input" \ 1167 "\n\nOptions:" \ 1168 "\n -H Prefix output lines with filename where match was found" \ 1169 "\n -h Suppress the prefixing filename on output" \ 1170 "\n -r Recurse subdirectories" \ 1171 "\n -i Ignore case distinctions" \ 1172 "\n -l List names of files that match" \ 1173 "\n -L List names of files that do not match" \ 1174 "\n -n Print line number with output lines" \ 1175 "\n -q Quiet. Returns 0 if PATTERN was found, 1 otherwise" \ 1176 "\n -v Select non-matching lines" \ 1177 "\n -s Suppress file open/read error messages" \ 1178 "\n -c Only print count of matching lines" \ 1179 "\n -o Show only the part of a line that matches PATTERN" \ 1180 "\n -m MAX Match up to MAX times per file" \ 1181 USE_DESKTOP( \ 1182 "\n -w Match whole words only") \ 1183 "\n -F PATTERN is a set of newline-separated strings" \ 1184 USE_FEATURE_GREP_EGREP_ALIAS( \ 1185 "\n -E PATTERN is an extended regular expression") \ 1186 "\n -e PTRN Pattern to match" \ 1187 "\n -f FILE Read pattern from file" \ 1188 USE_FEATURE_GREP_CONTEXT( \ 1189 "\n -A Print NUM lines of trailing context" \ 1190 "\n -B Print NUM lines of leading context" \ 1191 "\n -C Print NUM lines of output context") \ 1192 1193#define grep_example_usage \ 1194 "$ grep root /etc/passwd\n" \ 1195 "root:x:0:0:root:/root:/bin/bash\n" \ 1196 "$ grep ^[rR]oo. /etc/passwd\n" \ 1197 "root:x:0:0:root:/root:/bin/bash\n" 1198 1199#define gunzip_trivial_usage \ 1200 "[OPTION]... FILE" 1201#define gunzip_full_usage \ 1202 "Uncompress FILE (or standard input if FILE is '-')" \ 1203 "\n\nOptions:\n" \ 1204 " -c Write output to standard output\n" \ 1205 " -f Force read when source is a terminal\n" \ 1206 " -t Test compressed file integrity" 1207#define gunzip_example_usage \ 1208 "$ ls -la /tmp/BusyBox*\n" \ 1209 "-rw-rw-r-- 1 andersen andersen 557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \ 1210 "$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \ 1211 "$ ls -la /tmp/BusyBox*\n" \ 1212 "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n" 1213 1214#define gzip_trivial_usage \ 1215 "[OPTION]... [FILE]..." 1216#define gzip_full_usage \ 1217 "Compress FILE(s) with maximum compression.\n" \ 1218 "When FILE is '-' or unspecified, reads standard input. Implies -c." \ 1219 "\n\nOptions:\n" \ 1220 " -c Write output to standard output instead of FILE.gz\n" \ 1221 " -d Decompress\n" \ 1222 " -f Force write when destination is a terminal" 1223#define gzip_example_usage \ 1224 "$ ls -la /tmp/busybox*\n" \ 1225 "-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/busybox.tar\n" \ 1226 "$ gzip /tmp/busybox.tar\n" \ 1227 "$ ls -la /tmp/busybox*\n" \ 1228 "-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/busybox.tar.gz\n" 1229 1230#define halt_trivial_usage \ 1231 "[-d delay] [-n] [-f]" 1232#define halt_full_usage \ 1233 "Halt the system" \ 1234 "\n\nOptions:\n" \ 1235 " -d Delay interval for halting\n" \ 1236 " -n No call to sync()\n" \ 1237 " -f Force halt (don't go through init)" 1238 1239#define hdparm_trivial_usage \ 1240 "[options] [device] .." 1241#define hdparm_full_usage \ 1242 USE_FEATURE_HDPARM_GET_IDENTITY( \ 1243 "If no device name is specified try to read from stdin.\n\n") \ 1244 "Options:\n" \ 1245 " -a Get/set fs readahead\n" \ 1246 " -A Set drive read-lookahead flag (0/1)\n" \ 1247 " -b Get/set bus state (0 == off, 1 == on, 2 == tristate)\n" \ 1248 " -B Set Advanced Power Management setting (1-255)\n" \ 1249 " -c Get/set IDE 32-bit IO setting\n" \ 1250 " -C Check IDE power mode status\n" \ 1251 USE_FEATURE_HDPARM_HDIO_GETSET_DMA( \ 1252 " -d Get/set using_dma flag\n") \ 1253 " -D Enable/disable drive defect-mgmt\n" \ 1254 " -f Flush buffer cache for device on exit\n" \ 1255 " -g Display drive geometry\n" \ 1256 " -h Display terse usage information\n" \ 1257 USE_FEATURE_HDPARM_GET_IDENTITY( \ 1258 " -i Display drive identification\n") \ 1259 USE_FEATURE_HDPARM_GET_IDENTITY( \ 1260 " -I Detailed/current information directly from drive\n") \ 1261 " -k Get/set keep_settings_over_reset flag (0/1)\n" \ 1262 " -K Set drive keep_features_over_reset flag (0/1)\n" \ 1263 " -L Set drive doorlock (0/1) (removable harddisks only)\n" \ 1264 " -m Get/set multiple sector count\n" \ 1265 " -n Get/set ignore-write-errors flag (0/1)\n" \ 1266 " -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)\n" \ 1267 " -P Set drive prefetch count\n" \ 1268 " -q Change next setting quietly\n" \ 1269 " -Q Get/set DMA tagged-queuing depth (if supported)\n" \ 1270 " -r Get/set readonly flag (DANGEROUS to set)\n" \ 1271 USE_FEATURE_HDPARM_HDIO_SCAN_HWIF( \ 1272 " -R Register an IDE interface (DANGEROUS)\n") \ 1273 " -S Set standby (spindown) timeout\n" \ 1274 " -t Perform device read timings\n" \ 1275 " -T Perform cache read timings\n" \ 1276 " -u Get/set unmaskirq flag (0/1)\n" \ 1277 USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( \ 1278 " -U Un-register an IDE interface (DANGEROUS)\n") \ 1279 " -v Defaults; same as -mcudkrag for IDE drives\n" \ 1280 " -V Display program version and exit immediately\n" \ 1281 USE_FEATURE_HDPARM_HDIO_DRIVE_RESET( \ 1282 " -w Perform device reset (DANGEROUS)\n") \ 1283 " -W Set drive write-caching flag (0/1) (DANGEROUS)\n" \ 1284 USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( \ 1285 " -x Tristate device for hotswap (0/1) (DANGEROUS)\n") \ 1286 " -X Set IDE xfer mode (DANGEROUS)\n" \ 1287 " -y Put IDE drive in standby mode\n" \ 1288 " -Y Put IDE drive to sleep\n" \ 1289 " -Z Disable Seagate auto-powersaving mode\n" \ 1290 " -z Re-read partition table" 1291 1292#define head_trivial_usage \ 1293 "[OPTION]... [FILE]..." 1294#define head_full_usage \ 1295 "Print first 10 lines of each FILE to standard output.\n" \ 1296 "With more than one FILE, precede each with a header giving the\n" \ 1297 "file name. With no FILE, or when FILE is -, read standard input." \ 1298 "\n\nOptions:" \ 1299 "\n -n NUM Print first NUM lines instead of first 10" \ 1300 USE_FEATURE_FANCY_HEAD( \ 1301 "\n -c NUM Output the first NUM bytes" \ 1302 "\n -q Never output headers giving file names" \ 1303 "\n -v Always output headers giving file names") 1304#define head_example_usage \ 1305 "$ head -n 2 /etc/passwd\n" \ 1306 "root:x:0:0:root:/root:/bin/bash\n" \ 1307 "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" 1308 1309#define hexdump_trivial_usage \ 1310 "[-[bcCdefnosvx]] [OPTION] FILE" 1311#define hexdump_full_usage \ 1312 "Display file(s) or standard input in a user specified format" \ 1313 "\n\nOptions:\n" \ 1314 " -b One-byte octal display\n" \ 1315 " -c One-byte character display\n" \ 1316 " -C Canonical hex+ASCII, 16 bytes per line\n" \ 1317 " -d Two-byte decimal display\n" \ 1318 " -e FORMAT STRING\n" \ 1319 " -f FORMAT FILE\n" \ 1320 " -n LENGTH Interpret only length bytes of input\n" \ 1321 " -o Two-byte octal display\n" \ 1322 " -s OFFSET Skip offset bytes\n" \ 1323 " -v Display all input data\n" \ 1324 " -x Two-byte hexadecimal display" 1325 1326#define hostid_trivial_usage \ 1327 "" 1328#define hostid_full_usage \ 1329 "Print out a unique 32-bit identifier for the machine" 1330 1331#define hostname_trivial_usage \ 1332 "[OPTION] {hostname | -F FILE}" 1333#define hostname_full_usage \ 1334 "Get or set the hostname or DNS domain name. If a hostname is given\n" \ 1335 "(or FILE with the -F parameter), the host name will be set." \ 1336 "\n\nOptions:\n" \ 1337 " -s Short\n" \ 1338 " -i Addresses for the hostname\n" \ 1339 " -d DNS domain name\n" \ 1340 " -f Fully qualified domain name\n" \ 1341 " -F FILE Use the contents of FILE to specify the hostname" 1342#define hostname_example_usage \ 1343 "$ hostname\n" \ 1344 "sage\n" 1345 1346#define httpd_trivial_usage \ 1347 "[-c conffile]" \ 1348 " [-p [ip:]port]" \ 1349 " [-i] [-f] [-v[v]]" \ 1350 USE_FEATURE_HTTPD_SETUID(" [-u user[:grp]]") \ 1351 USE_FEATURE_HTTPD_BASIC_AUTH(" [-r realm]") \ 1352 USE_FEATURE_HTTPD_AUTH_MD5(" [-m pass]") \ 1353 " [-h home]" \ 1354 " [-d/-e string]" 1355#define httpd_full_usage \ 1356 "Listen for incoming HTTP requests" \ 1357 "\n\nOptions:" \ 1358 "\n -c FILE Configuration file (default httpd.conf)" \ 1359 "\n -p [IP:]PORT Bind to ip:port (default *:80)" \ 1360 "\n -i Inetd mode" \ 1361 "\n -f Do not daemonize" \ 1362 "\n -v[v] Verbose" \ 1363 USE_FEATURE_HTTPD_SETUID( \ 1364 "\n -u USER[:GRP] Set uid/gid after binding to port") \ 1365 USE_FEATURE_HTTPD_BASIC_AUTH( \ 1366 "\n -r REALM Authentication Realm for Basic Authentication") \ 1367 USE_FEATURE_HTTPD_AUTH_MD5( \ 1368 "\n -m PASS Crypt PASS with md5 algorithm") \ 1369 "\n -h HOME Home directory (default .)" \ 1370 "\n -e STRING HTML encode STRING" \ 1371 "\n -d STRING URL decode STRING" \ 1372 1373#define hwclock_trivial_usage \ 1374 "[-r|--show] [-s|--hctosys] [-w|--systohc]" \ 1375 " [-l|--localtime] [-u|--utc]" \ 1376 " [-f FILE]" 1377#define hwclock_full_usage \ 1378 "Query and set a hardware clock (RTC)" \ 1379 "\n\nOptions:\n" \ 1380 " -r Read hardware clock and print result\n" \ 1381 " -s Set the system time from the hardware clock\n" \ 1382 " -w Set the hardware clock to the current system time\n" \ 1383 " -u The hardware clock is kept in coordinated universal time\n" \ 1384 " -l The hardware clock is kept in local time\n" \ 1385 " -f FILE Use the specified clock (e.g. /dev/rtc2)" 1386 1387#define id_trivial_usage \ 1388 "[OPTIONS]... [USERNAME]" 1389#define id_full_usage \ 1390 "Print information for USERNAME or the current user" \ 1391 "\n\nOptions:\n" \ 1392 USE_SELINUX( \ 1393 " -Z prints only the security context\n" \ 1394 ) \ 1395 " -g Prints only the group ID\n" \ 1396 " -u Prints only the user ID\n" \ 1397 " -n Print a name instead of a number\n" \ 1398 " -r Prints the real user ID instead of the effective ID" 1399#define id_example_usage \ 1400 "$ id\n" \ 1401 "uid=1000(andersen) gid=1000(andersen)\n" 1402 1403#define ifconfig_trivial_usage \ 1404 USE_FEATURE_IFCONFIG_STATUS("[-a]") " interface [address]" 1405#define ifconfig_full_usage \ 1406 "Configure a network interface" \ 1407 "\n\nOptions:\n" \ 1408 USE_FEATURE_IPV6( \ 1409 " [add ADDRESS[/PREFIXLEN]]\n") \ 1410 USE_FEATURE_IPV6( \ 1411 " [del ADDRESS[/PREFIXLEN]]\n") \ 1412 " [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]]\n" \ 1413 " [netmask ADDRESS] [dstaddr ADDRESS]\n" \ 1414 USE_FEATURE_IFCONFIG_SLIP( \ 1415 " [outfill NN] [keepalive NN]\n") \ 1416 " " USE_FEATURE_IFCONFIG_HW("[hw ether ADDRESS] ") "[metric NN] [mtu NN]\n" \ 1417 " [[-]trailers] [[-]arp] [[-]allmulti]\n" \ 1418 " [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic]\n" \ 1419 USE_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ( \ 1420 " [mem_start NN] [io_addr NN] [irq NN]\n") \ 1421 " [up|down] ..." 1422 1423#define ifup_trivial_usage \ 1424 "[-ahinv] ifaces..." 1425#define ifup_full_usage \ 1426 "Options:\n" \ 1427 " -a De/configure all interfaces automatically\n" \ 1428 " -i FILE Use FILE for interface definitions\n" \ 1429 " -n Print out what would happen, but don't do it\n" \ 1430 " (note that this option doesn't disable mappings)\n" \ 1431 " -v Print out what would happen before doing it\n" \ 1432 " -m Don't run any mappings\n" \ 1433 " -f Force de/configuration" 1434 1435#define ifdown_trivial_usage \ 1436 "[-ahinv] ifaces..." 1437#define ifdown_full_usage \ 1438 "Options:\n" \ 1439 " -a De/configure all interfaces automatically\n" \ 1440 " -i FILE Use FILE for interface definitions\n" \ 1441 " -n Print out what would happen, but don't do it\n" \ 1442 " (note that this option doesn't disable mappings)\n" \ 1443 " -v Print out what would happen before doing it\n" \ 1444 " -m Don't run any mappings\n" \ 1445 " -f Force de/configuration" 1446 1447#define inetd_trivial_usage \ 1448 "[-f] [-q len] [conf]" 1449#define inetd_full_usage \ 1450 "Listen for network connections and launch programs" \ 1451 "\n\nOptions:\n" \ 1452 " -f Run in foreground\n" \ 1453 " -q N Set the size of the socket listen queue to N\n" \ 1454 " (default: 128)" 1455 1456#define init_trivial_usage \ 1457 "" 1458#define init_full_usage \ 1459 "Init is the parent of all processes" 1460#define init_notes_usage \ 1461"This version of init is designed to be run only by the kernel.\n" \ 1462"\n" \ 1463"BusyBox init doesn't support multiple runlevels. The runlevels field of\n" \ 1464"the /etc/inittab file is completely ignored by BusyBox init. If you want\n" \ 1465"runlevels, use sysvinit.\n" \ 1466"\n" \ 1467"BusyBox init works just fine without an inittab. If no inittab is found,\n" \ 1468"it has the following default behavior:\n" \ 1469"\n" \ 1470" ::sysinit:/etc/init.d/rcS\n" \ 1471" ::askfirst:/bin/sh\n" \ 1472" ::ctrlaltdel:/sbin/reboot\n" \ 1473" ::shutdown:/sbin/swapoff -a\n" \ 1474" ::shutdown:/bin/umount -a -r\n" \ 1475" ::restart:/sbin/init\n" \ 1476"\n" \ 1477"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \ 1478"\n" \ 1479" tty2::askfirst:/bin/sh\n" \ 1480" tty3::askfirst:/bin/sh\n" \ 1481" tty4::askfirst:/bin/sh\n" \ 1482"\n" \ 1483"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \ 1484"\n" \ 1485" <id>:<runlevels>:<action>:<process>\n" \ 1486"\n" \ 1487" <id>:\n" \ 1488"\n" \ 1489" WARNING: This field has a non-traditional meaning for BusyBox init!\n" \ 1490" The id field is used by BusyBox init to specify the controlling tty for\n" \ 1491" the specified process to run on. The contents of this field are\n" \ 1492" appended to \"/dev/\" and used as-is. There is no need for this field to\n" \ 1493" be unique, although if it isn't you may have strange results. If this\n" \ 1494" field is left blank, the controlling tty is set to the console. Also\n" \ 1495" note that if BusyBox detects that a serial console is in use, then only\n" \ 1496" entries whose controlling tty is either the serial console or /dev/null\n" \ 1497" will be run. BusyBox init does nothing with utmp. We don't need no\n" \ 1498" stinkin' utmp.\n" \ 1499"\n" \ 1500" <runlevels>:\n" \ 1501"\n" \ 1502" The runlevels field is completely ignored.\n" \ 1503"\n" \ 1504" <action>:\n" \ 1505"\n" \ 1506" Valid actions include: sysinit, respawn, askfirst, wait,\n" \ 1507" once, restart, ctrlaltdel, and shutdown.\n" \ 1508"\n" \ 1509" The available actions can be classified into two groups: actions\n" \ 1510" that are run only once, and actions that are re-run when the specified\n" \ 1511" process exits.\n" \ 1512"\n" \ 1513" Run only-once actions:\n" \ 1514"\n" \ 1515" 'sysinit' is the first item run on boot. init waits until all\n" \ 1516" sysinit actions are completed before continuing. Following the\n" \ 1517" completion of all sysinit actions, all 'wait' actions are run.\n" \ 1518" 'wait' actions, like 'sysinit' actions, cause init to wait until\n" \ 1519" the specified task completes. 'once' actions are asynchronous,\n" \ 1520" therefore, init does not wait for them to complete. 'restart' is\n" \ 1521" the action taken to restart the init process. By default this should\n" \ 1522" simply run /sbin/init, but can be a script which runs pivot_root or it\n" \ 1523" can do all sorts of other interesting things. The 'ctrlaltdel' init\n" \ 1524" actions are run when the system detects that someone on the system\n" \ 1525" console has pressed the CTRL-ALT-DEL key combination. Typically one\n" \ 1526" wants to run 'reboot' at this point to cause the system to reboot.\n" \ 1527" Finally the 'shutdown' action specifies the actions to taken when\n" \ 1528" init is told to reboot. Unmounting filesystems and disabling swap\n" \ 1529" is a very good here.\n" \ 1530"\n" \ 1531" Run repeatedly actions:\n" \ 1532"\n" \ 1533" 'respawn' actions are run after the 'once' actions. When a process\n" \ 1534" started with a 'respawn' action exits, init automatically restarts\n" \ 1535" it. Unlike sysvinit, BusyBox init does not stop processes from\n" \ 1536" respawning out of control. The 'askfirst' actions acts just like\n" \ 1537" respawn, except that before running the specified process it\n" \ 1538" displays the line \"Please press Enter to activate this console.\"\n" \ 1539" and then waits for the user to press enter before starting the\n" \ 1540" specified process.\n" \ 1541"\n" \ 1542" Unrecognized actions (like initdefault) will cause init to emit an\n" \ 1543" error message, and then go along with its business. All actions are\n" \ 1544" run in the order they appear in /etc/inittab.\n" \ 1545"\n" \ 1546" <process>:\n" \ 1547"\n" \ 1548" Specifies the process to be executed and its command line.\n" \ 1549"\n" \ 1550"Example /etc/inittab file:\n" \ 1551"\n" \ 1552" # This is run first except when booting in single-user mode\n" \ 1553" #\n" \ 1554" ::sysinit:/etc/init.d/rcS\n" \ 1555" \n" \ 1556" # /bin/sh invocations on selected ttys\n" \ 1557" #\n" \ 1558" # Start an \"askfirst\" shell on the console (whatever that may be)\n" \ 1559" ::askfirst:-/bin/sh\n" \ 1560" # Start an \"askfirst\" shell on /dev/tty2-4\n" \ 1561" tty2::askfirst:-/bin/sh\n" \ 1562" tty3::askfirst:-/bin/sh\n" \ 1563" tty4::askfirst:-/bin/sh\n" \ 1564" \n" \ 1565" # /sbin/getty invocations for selected ttys\n" \ 1566" #\n" \ 1567" tty4::respawn:/sbin/getty 38400 tty4\n" \ 1568" tty5::respawn:/sbin/getty 38400 tty5\n" \ 1569" \n" \ 1570" \n" \ 1571" # Example of how to put a getty on a serial line (for a terminal)\n" \ 1572" #\n" \ 1573" #::respawn:/sbin/getty -L ttyS0 9600 vt100\n" \ 1574" #::respawn:/sbin/getty -L ttyS1 9600 vt100\n" \ 1575" #\n" \ 1576" # Example how to put a getty on a modem line\n" \ 1577" #::respawn:/sbin/getty 57600 ttyS2\n" \ 1578" \n" \ 1579" # Stuff to do when restarting the init process\n" \ 1580" ::restart:/sbin/init\n" \ 1581" \n" \ 1582" # Stuff to do before rebooting\n" \ 1583" ::ctrlaltdel:/sbin/reboot\n" \ 1584" ::shutdown:/bin/umount -a -r\n" \ 1585" ::shutdown:/sbin/swapoff -a\n" 1586 1587#define insmod_trivial_usage \ 1588 "[OPTION]... MODULE [symbol=value]..." 1589#define insmod_full_usage \ 1590 "Load the specified kernel modules into the kernel" \ 1591 "\n\nOptions:\n" \ 1592 " -f Force module to load into the wrong kernel version\n" \ 1593 " -k Make module autoclean-able\n" \ 1594 " -v Verbose\n" \ 1595 " -q Quiet\n" \ 1596 " -L Lock to prevent simultaneous loads of a module\n" \ 1597 USE_FEATURE_INSMOD_LOAD_MAP( \ 1598 " -m Output load map to stdout\n") \ 1599 " -o NAME Set internal module name to NAME\n" \ 1600 " -x Do not export externs" 1601 1602#define install_trivial_usage \ 1603 "[-cgmops] [sources] dest|directory" 1604#define install_full_usage \ 1605 "Copy files and set attributes" \ 1606 "\n\nOptions:\n" \ 1607 " -c Copy the file, default\n" \ 1608 " -d Create directories\n" \ 1609 " -g Set group ownership\n" \ 1610 " -m Set permission modes\n" \ 1611 " -o Set ownership\n" \ 1612 " -p Preserve date\n" \ 1613 " -s Strip symbol tables" \ 1614 USE_SELINUX( \ 1615 "\n -Z Set security context of copy" \ 1616 ) 1617/* would need to make the " | " optional depending on more than one selected */ 1618#define ip_trivial_usage \ 1619 "[OPTIONS] {" \ 1620 USE_FEATURE_IP_ADDRESS("address | ") \ 1621 USE_FEATURE_IP_ROUTE("route | ") \ 1622 USE_FEATURE_IP_LINK("link | ") \ 1623 USE_FEATURE_IP_TUNNEL("tunnel | ") \ 1624 USE_FEATURE_IP_RULE("rule") \ 1625 "} {COMMAND}" 1626#define ip_full_usage \ 1627 "ip [OPTIONS] OBJECT {COMMAND}\n" \ 1628 "where OBJECT := {" \ 1629 USE_FEATURE_IP_ADDRESS("address | ") \ 1630 USE_FEATURE_IP_ROUTE("route | ") \ 1631 USE_FEATURE_IP_LINK("link | ") \ 1632 USE_FEATURE_IP_TUNNEL("tunnel | ") \ 1633 USE_FEATURE_IP_RULE("rule") \ 1634 "}\n" \ 1635 "OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }" 1636 1637#define ipaddr_trivial_usage \ 1638 "{ {add|del} IFADDR dev STRING | {show|flush}\n" \ 1639 " [dev STRING] [to PREFIX] }" 1640#define ipaddr_full_usage \ 1641 "ipaddr {add|delete} IFADDR dev STRING\n" \ 1642 "ipaddr {show|flush} [dev STRING] [scope SCOPE-ID]\n" \ 1643 " [to PREFIX] [label PATTERN]\n" \ 1644 " IFADDR := PREFIX | ADDR peer PREFIX\n" \ 1645 " [broadcast ADDR] [anycast ADDR]\n" \ 1646 " [label STRING] [scope SCOPE-ID]\n" \ 1647 " SCOPE-ID := [host | link | global | NUMBER]" 1648 1649#define ipcalc_trivial_usage \ 1650 "[OPTION]... ADDRESS[[/]NETMASK] [NETMASK]" 1651#define ipcalc_full_usage \ 1652 "Calculate IP network settings from a IP address" \ 1653 "\n\nOptions:" \ 1654 "\n -b --broadcast Display calculated broadcast address" \ 1655 "\n -n --network Display calculated network address" \ 1656 "\n -m --netmask Display default netmask for IP" \ 1657 USE_FEATURE_IPCALC_FANCY( \ 1658 "\n -p --prefix Display the prefix for IP/NETMASK" \ 1659 "\n -h --hostname Display first resolved host name" \ 1660 "\n -s --silent Don't ever display error messages") 1661 1662#define ipcrm_trivial_usage \ 1663 "[-[MQS] key] [-[mqs] id]" 1664#define ipcrm_full_usage \ 1665 "The upper-case options MQS are used to remove a shared memory segment by a\n" \ 1666 "segment by a shmkey value. The lower-case options mqs are used\n" \ 1667 "to remove a segment by shmid value.\n" \ 1668 "\n\nOptions:\n" \ 1669 " -[mM] Remove the memory segment after the last detach\n" \ 1670 " -[qQ] Remove the message queue\n" \ 1671 " -[sS] Remove the semaphore" 1672 1673#define ipcs_trivial_usage \ 1674 "[[-smq] -i shmid] | [[-asmq] [-tcplu]]" 1675#define ipcs_full_usage \ 1676 " -i Specify a specific resource id\n" \ 1677 "Resource specification:\n" \ 1678 " -m Shared memory segments\n" \ 1679 " -q Message queues\n" \ 1680 " -s Semaphore arrays\n" \ 1681 " -a All (default)\n" \ 1682 "Output format:\n" \ 1683 " -t Time\n" \ 1684 " -c Creator\n" \ 1685 " -p Pid\n" \ 1686 " -l Limits\n" \ 1687 " -u Summary" 1688 1689#define iplink_trivial_usage \ 1690 "{ set DEVICE { up | down | arp { on | off } | show [DEVICE] }" 1691#define iplink_full_usage \ 1692 "iplink set DEVICE { up | down | arp | multicast { on | off } |\n" \ 1693 " dynamic { on | off } |\n" \ 1694 " mtu MTU }\n" \ 1695 "iplink show [DEVICE]" 1696 1697#define iproute_trivial_usage \ 1698 "{ list | flush | { add | del | change | append |\n" \ 1699 " replace | monitor } ROUTE }" 1700#define iproute_full_usage \ 1701 "iproute { list | flush } SELECTOR\n" \ 1702 "iproute get ADDRESS [from ADDRESS iif STRING]\n" \ 1703 " [oif STRING] [tos TOS]\n" \ 1704 "iproute { add | del | change | append | replace | monitor } ROUTE\n" \ 1705 " SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO]\n" \ 1706 " ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO]" 1707 1708#define iprule_trivial_usage \ 1709 "{[list | add | del] RULE}" 1710#define iprule_full_usage \ 1711 "iprule [list | add | del] SELECTOR ACTION\n" \ 1712 " SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK]\n" \ 1713 " [dev STRING] [pref NUMBER]\n" \ 1714 " ACTION := [table TABLE_ID] [nat ADDRESS]\n" \ 1715 " [prohibit | reject | unreachable]\n" \ 1716 " [realms [SRCREALM/]DSTREALM]\n" \ 1717 " TABLE_ID := [local | main | default | NUMBER]" 1718 1719#define iptunnel_trivial_usage \ 1720 "{ add | change | del | show } [NAME]\n" \ 1721 " [mode { ipip | gre | sit }]\n" \ 1722 " [remote ADDR] [local ADDR] [ttl TTL]" 1723#define iptunnel_full_usage \ 1724 "iptunnel { add | change | del | show } [NAME]\n" \ 1725 " [mode { ipip | gre | sit }] [remote ADDR] [local ADDR]\n" \ 1726 " [[i|o]seq] [[i|o]key KEY] [[i|o]csum]\n" \ 1727 " [ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]" 1728 1729#define kill_trivial_usage \ 1730 "[-l] [-signal] process-id [process-id ...]" 1731#define kill_full_usage \ 1732 "Send a signal (default is TERM) to the specified process(es)" \ 1733 "\n\nOptions:\n" \ 1734 " -l List all signal names and numbers" 1735#define kill_example_usage \ 1736 "$ ps | grep apache\n" \ 1737 "252 root root S [apache]\n" \ 1738 "263 www-data www-data S [apache]\n" \ 1739 "264 www-data www-data S [apache]\n" \ 1740 "265 www-data www-data S [apache]\n" \ 1741 "266 www-data www-data S [apache]\n" \ 1742 "267 www-data www-data S [apache]\n" \ 1743 "$ kill 252\n" 1744 1745#define killall_trivial_usage \ 1746 "[-l] [-q] [-signal] process-name [process-name ...]" 1747#define killall_full_usage \ 1748 "Send a signal (default is TERM) to the specified process(es)" \ 1749 "\n\nOptions:\n" \ 1750 " -l List all signal names and numbers\n" \ 1751 " -q Do not complain if no processes were killed" 1752#define killall_example_usage \ 1753 "$ killall apache\n" 1754 1755#define killall5_trivial_usage \ 1756 "[-l] [-signal]" 1757#define killall5_full_usage \ 1758 "Send a signal (default is TERM) to all processes outside current session" \ 1759 "\n\nOptions:\n" \ 1760 " -l List all signal names and numbers\n" \ 1761 1762#define klogd_trivial_usage \ 1763 "[-c n] [-n]" 1764#define klogd_full_usage \ 1765 "Kernel logger" \ 1766 "\n\nOptions:\n" \ 1767 " -c n Sets the default log level of console messages to n\n" \ 1768 " -n Run as foreground process" 1769 1770#define length_trivial_usage \ 1771 "STRING" 1772#define length_full_usage \ 1773 "Print out the length of the specified STRING" 1774#define length_example_usage \ 1775 "$ length Hello\n" \ 1776 "5\n" 1777 1778#define less_trivial_usage \ 1779 "[-EMNmh~?] FILE1 FILE2..." 1780#define less_full_usage \ 1781 "View a file or list of files. The position within files can be\n" \ 1782 "changed, and files can be manipulated in various ways." \ 1783 "\n\nOptions:\n" \ 1784 " -E Quit once the end of a file is reached\n" \ 1785 " -M Display a status line containing the current line numbers\n" \ 1786 " and the percentage through the file\n" \ 1787 " -N Prefix line numbers to each line\n" \ 1788 " -m Display a status line containing the percentage through the\n" \ 1789 " file\n" \ 1790 " -~ Suppress ~s displayed when input past the end of the file is\n" \ 1791 " reached" 1792 1793#define setarch_trivial_usage \ 1794 "personality program [args ...]" 1795#define setarch_full_usage \ 1796 "Personality may be:\n" \ 1797 " linux32 Set 32bit uname emulation\n" \ 1798 " linux64 Set 64bit uname emulation" 1799 1800#define ln_trivial_usage \ 1801 "[OPTION] TARGET... LINK_NAME|DIRECTORY" 1802#define ln_full_usage \ 1803 "Create a link named LINK_NAME or DIRECTORY to the specified TARGET.\n" \ 1804 "You may use '--' to indicate that all following arguments are non-options." \ 1805 "\n\nOptions:\n" \ 1806 " -s Make symlinks instead of hardlinks\n" \ 1807 " -f Remove existing destination files\n" \ 1808 " -n No dereference symlinks - treat like normal file\n" \ 1809 " -b Make a backup of the target (if exists) before link operation\n" \ 1810 " -S suf Use suffix instead of ~ when making backup files" 1811#define ln_example_usage \ 1812 "$ ln -s BusyBox /tmp/ls\n" \ 1813 "$ ls -l /tmp/ls\n" \ 1814 "lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n" 1815 1816#define load_policy_trivial_usage \ 1817 "[FILE]" 1818#define load_policy_full_usage 1819 1820#define loadfont_trivial_usage \ 1821 "< font" 1822#define loadfont_full_usage \ 1823 "Load a console font from standard input" 1824#define loadfont_example_usage \ 1825 "$ loadfont < /etc/i18n/fontname\n" 1826 1827#define loadkmap_trivial_usage \ 1828 "< keymap" 1829#define loadkmap_full_usage \ 1830 "Load a binary keyboard translation table from standard input" 1831#define loadkmap_example_usage \ 1832 "$ loadkmap < /etc/i18n/lang-keymap\n" 1833 1834#define logger_trivial_usage \ 1835 "[OPTION]... [MESSAGE]" 1836#define logger_full_usage \ 1837 "Write MESSAGE to the system log. If MESSAGE is omitted, log stdin." \ 1838 "\n\nOptions:\n" \ 1839 " -s Log to stderr as well as the system log\n" \ 1840 " -t TAG Log using the specified tag (defaults to user name)\n" \ 1841 " -p PRIO Enter the message with the specified priority.\n" \ 1842 " This may be numerical or a 'facility.level' pair." 1843#define logger_example_usage \ 1844 "$ logger \"hello\"\n" 1845 1846#define login_trivial_usage \ 1847 "[OPTION]... [username] [ENV=VAR ...]" 1848#define login_full_usage \ 1849 "Begin a new session on the system" \ 1850 "\n\nOptions:\n" \ 1851 " -f Do not authenticate (user already authenticated)\n" \ 1852 " -h Name of the remote host for this login\n" \ 1853 " -p Preserve environment" 1854 1855#define logname_trivial_usage \ 1856 "" 1857#define logname_full_usage \ 1858 "Print the name of the current user" 1859#define logname_example_usage \ 1860 "$ logname\n" \ 1861 "root\n" 1862 1863#define logread_trivial_usage \ 1864 "[OPTION]..." 1865#define logread_full_usage \ 1866 "Show the messages from syslogd (using circular buffer)" \ 1867 "\n\nOptions:\n" \ 1868 " -f Output data as the log grows" 1869 1870#define losetup_trivial_usage \ 1871 "[-o OFFSET] [-d] LOOPDEVICE [FILE]]" 1872#define losetup_full_usage \ 1873 "(Dis)associate LOOPDEVICE with FILE, or display current associations" \ 1874 "\n\nOptions:\n" \ 1875 " -d Disassociate LOOPDEVICE\n" \ 1876 " -o OFFSET Start OFFSET bytes into FILE" 1877#define losetup_notes_usage \ 1878 "No arguments will display all current associations.\n" \ 1879 "One argument (losetup /dev/loop1) will display the current association\n" \ 1880 "(if any), or disassociate it (with -d). The display shows the offset\n" \ 1881 "and filename of the file the loop device is currently bound to.\n\n" \ 1882 "Two arguments (losetup /dev/loop1 file.img) create a new association,\n" \ 1883 "with an optional offset (-o 12345). Encryption is not yet supported.\n\n" 1884 1885#define ls_trivial_usage \ 1886 "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \ 1887 USE_FEATURE_LS_TIMESTAMPS("e") USE_FEATURE_LS_FILETYPES("F") "iln" \ 1888 USE_FEATURE_LS_FILETYPES("p") USE_FEATURE_LS_FOLLOWLINKS("L") \ 1889 USE_FEATURE_LS_RECURSIVE("R") USE_FEATURE_LS_SORTFILES("rS") "s" \ 1890 USE_FEATURE_AUTOWIDTH("T") USE_FEATURE_LS_TIMESTAMPS("tu") \ 1891 USE_FEATURE_LS_SORTFILES("v") USE_FEATURE_AUTOWIDTH("w") "x" \ 1892 USE_FEATURE_LS_SORTFILES("X") USE_FEATURE_HUMAN_READABLE("h") "k" \ 1893 USE_SELINUX("K") "] [filenames...]" 1894#define ls_full_usage \ 1895 "List directory contents" \ 1896 "\n\nOptions:" \ 1897 "\n -1 List files in a single column" \ 1898 "\n -A Do not list implied . and .." \ 1899 "\n -a Do not hide entries starting with ." \ 1900 "\n -C List entries by columns" \ 1901 USE_FEATURE_LS_TIMESTAMPS( \ 1902 "\n -c With -l: show ctime") \ 1903 USE_FEATURE_LS_COLOR( \ 1904 "\n --color[={always,never,auto}] Control coloring") \ 1905 "\n -d List directory entries instead of contents" \ 1906 USE_FEATURE_LS_TIMESTAMPS( \ 1907 "\n -e List both full date and full time") \ 1908 USE_FEATURE_LS_FILETYPES( \ 1909 "\n -F Append indicator (one of */=@|) to entries") \ 1910 "\n -i List the i-node for each file" \ 1911 "\n -l Use a long listing format" \ 1912 "\n -n List numeric UIDs and GIDs instead of names" \ 1913 USE_FEATURE_LS_FILETYPES( \ 1914 "\n -p Append indicator (one of /=@|) to entries") \ 1915 USE_FEATURE_LS_FOLLOWLINKS( \ 1916 "\n -L List entries pointed to by symlinks") \ 1917 USE_FEATURE_LS_RECURSIVE( \ 1918 "\n -R List subdirectories recursively") \ 1919 USE_FEATURE_LS_SORTFILES( \ 1920 "\n -r Sort the listing in reverse order") \ 1921 USE_FEATURE_LS_SORTFILES( \ 1922 "\n -S Sort the listing by file size") \ 1923 "\n -s List the size of each file, in blocks" \ 1924 USE_FEATURE_AUTOWIDTH( \ 1925 "\n -T NUM Assume Tabstop every NUM columns") \ 1926 USE_FEATURE_LS_TIMESTAMPS( \ 1927 "\n -t With -l: show modification time") \ 1928 USE_FEATURE_LS_TIMESTAMPS( \ 1929 "\n -u With -l: show access time") \ 1930 USE_FEATURE_LS_SORTFILES( \ 1931 "\n -v Sort the listing by version") \ 1932 USE_FEATURE_AUTOWIDTH( \ 1933 "\n -w NUM Assume the terminal is NUM columns wide") \ 1934 "\n -x List entries by lines instead of by columns" \ 1935 USE_FEATURE_LS_SORTFILES( \ 1936 "\n -X Sort the listing by extension") \ 1937 USE_FEATURE_HUMAN_READABLE( \ 1938 "\n -h Print sizes in human readable format (e.g., 1K 243M 2G)") \ 1939 USE_SELINUX( \ 1940 "\n -k Print security context") \ 1941 USE_SELINUX( \ 1942 "\n -K Print security context in long format") \ 1943 USE_SELINUX( \ 1944 "\n -Z Print security context and permission") 1945 1946#define lsattr_trivial_usage \ 1947 "[-Radlv] [files...]" 1948#define lsattr_full_usage \ 1949 "List file attributes on an ext2 fs" \ 1950 "\n\nOptions:\n" \ 1951 " -R Recursively list subdirectories\n" \ 1952 " -a Do not hide entries starting with .\n" \ 1953 " -d List directory entries instead of contents\n" \ 1954 " -l Print long flag names\n" \ 1955 " -v List the file's version/generation number" 1956 1957#define lsmod_trivial_usage \ 1958 "" 1959#define lsmod_full_usage \ 1960 "List the currently loaded kernel modules" 1961 1962#if ENABLE_FEATURE_MAKEDEVS_LEAF 1963#define makedevs_trivial_usage \ 1964 "NAME TYPE MAJOR MINOR FIRST LAST [s]" 1965#define makedevs_full_usage \ 1966 "Create a range of block or character special files\n\n" \ 1967 "TYPEs include:\n" \ 1968 " b: Make a block (buffered) device\n" \ 1969 " c or u: Make a character (un-buffered) device\n" \ 1970 " p: Make a named pipe. MAJOR and MINOR are ignored for named pipes\n" \ 1971 "\n" \ 1972 "FIRST specifies the number appended to NAME to create the first device.\n" \ 1973 "LAST specifies the number of the last item that should be created\n" \ 1974 "If 's' is the last argument, the base device is created as well.\n\n" \ 1975 "For example:\n" \ 1976 " makedevs /dev/ttyS c 4 66 2 63 -> ttyS2-ttyS63\n" \ 1977 " makedevs /dev/hda b 3 0 0 8 s -> hda,hda1-hda8" 1978#define makedevs_example_usage \ 1979 "# makedevs /dev/ttyS c 4 66 2 63\n" \ 1980 "[creates ttyS2-ttyS63]\n" \ 1981 "# makedevs /dev/hda b 3 0 0 8 s\n" \ 1982 "[creates hda,hda1-hda8]\n" 1983#endif 1984 1985#if ENABLE_FEATURE_MAKEDEVS_TABLE 1986#define makedevs_trivial_usage \ 1987 "[-d device_table] rootdir" 1988#define makedevs_full_usage \ 1989 "Create a range of special files as specified in a device table.\n" \ 1990 "Device table entries take the form of:\n" \ 1991 "<type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n" \ 1992 "Where name is the file name, type can be one of:\n" \ 1993 " f A regular file\n" \ 1994 " d Directory\n" \ 1995 " c Character special device file\n" \ 1996 " b Block special device file\n" \ 1997 " p Fifo (named pipe)\n" \ 1998 "uid is the user id for the target file, gid is the group id for the\n" \ 1999 "target file. The rest of the entries (major, minor, etc) apply to\n" \ 2000 "to device special files. A '-' may be used for blank entries." 2001#define makedevs_example_usage \ 2002 "For example:\n" \ 2003 "<name> <type> <mode><uid><gid><major><minor><start><inc><count>\n" \ 2004 "/dev d 755 0 0 - - - - -\n" \ 2005 "/dev/console c 666 0 0 5 1 - - -\n" \ 2006 "/dev/null c 666 0 0 1 3 0 0 -\n" \ 2007 "/dev/zero c 666 0 0 1 5 0 0 -\n" \ 2008 "/dev/hda b 640 0 0 3 0 0 0 -\n" \ 2009 "/dev/hda b 640 0 0 3 1 1 1 15\n\n" \ 2010 "Will Produce:\n" \ 2011 "/dev\n" \ 2012 "/dev/console\n" \ 2013 "/dev/null\n" \ 2014 "/dev/zero\n" \ 2015 "/dev/hda\n" \ 2016 "/dev/hda[0-15]\n" 2017#endif 2018 2019#define matchpathcon_trivial_usage \ 2020 "[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]" 2021#define matchpathcon_full_usage \ 2022 " -n Do not display path" \ 2023 "\n -N Do not use translations" \ 2024 "\n -f Use alternate file_context file" \ 2025 "\n -p Use prefix to speed translations" \ 2026 "\n -V Verify file context on disk matches defaults" 2027 2028#define md5sum_trivial_usage \ 2029 "[OPTION] [FILEs...]" \ 2030 USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: md5sum [OPTION] -c [FILE]") 2031#define md5sum_full_usage \ 2032 "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " MD5 checksums" \ 2033 "\n\nOptions:\n" \ 2034 "With no FILE, or when FILE is -, read standard input." \ 2035 USE_FEATURE_MD5_SHA1_SUM_CHECK("\n\n" \ 2036 " -c Check MD5 sums against given list\n" \ 2037 "\nThe following two options are useful only when verifying checksums:\n" \ 2038 " -s Don't output anything, status code shows success\n" \ 2039 " -w Warn about improperly formatted MD5 checksum lines") 2040#define md5sum_example_usage \ 2041 "$ md5sum < busybox\n" \ 2042 "6fd11e98b98a58f64ff3398d7b324003\n" \ 2043 "$ md5sum busybox\n" \ 2044 "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \ 2045 "$ md5sum -c -\n" \ 2046 "6fd11e98b98a58f64ff3398d7b324003 busybox\n" \ 2047 "busybox: OK\n" \ 2048 "^D\n" 2049 2050#define mdev_trivial_usage \ 2051 "[-s]" 2052#define mdev_full_usage \ 2053 " -s Scan /sys and populate /dev during system boot\n\n" \ 2054 "Called with no options (via hotplug) it uses environment variables\n" \ 2055 "to determine which device to add/remove." 2056#define mdev_notes_usage "" \ 2057 USE_FEATURE_MDEV_CONFIG( \ 2058 "The mdev config file contains lines that look like:\n" \ 2059 " hd[a-z][0-9]* 0:3 660\n\n" \ 2060 "That's device name (with regex match), uid:gid, and permissions.\n\n" \ 2061 USE_FEATURE_MDEV_EXEC( \ 2062 "Optionally, that can be followed (on the same line) by a special character\n" \ 2063 "and a command line to run after creating/before deleting the corresponding\n" \ 2064 "device(s). The environment variable $MDEV indicates the active device node\n" \ 2065 "(which is useful if it's a regex match). For example:\n\n" \ 2066 " hdc root:cdrom 660 *ln -s $MDEV cdrom\n\n" \ 2067 "The special characters are @ (run after creating), $ (run before deleting),\n" \ 2068 "and * (run both after creating and before deleting). The commands run in\n" \ 2069 "the /dev directory, and use system() which calls /bin/sh.\n\n" \ 2070 ) \ 2071 "Config file parsing stops on the first matching line. If no config\n"\ 2072 "entry is matched, devices are created with default 0:0 660. (Make\n"\ 2073 "the last line match .* to override this.)\n\n" \ 2074 ) 2075 2076#define mesg_trivial_usage \ 2077 "[y|n]" 2078#define mesg_full_usage \ 2079 "Control write access to your terminal\n" \ 2080 " y Allow write access to your terminal\n" \ 2081 " n Disallow write access to your terminal" 2082 2083#define mkdir_trivial_usage \ 2084 "[OPTION] DIRECTORY..." 2085#define mkdir_full_usage \ 2086 "Create the DIRECTORY(ies) if they do not already exist" \ 2087 "\n\nOptions:\n" \ 2088 " -m Set permission mode (as in chmod), not rwxrwxrwx - umask\n" \ 2089 " -p No error if existing, make parent directories as needed" \ 2090 USE_SELINUX( \ 2091 "\n -Z Set security context" \ 2092 ) 2093 2094#define mkdir_example_usage \ 2095 "$ mkdir /tmp/foo\n" \ 2096 "$ mkdir /tmp/foo\n" \ 2097 "/tmp/foo: File exists\n" \ 2098 "$ mkdir /tmp/foo/bar/baz\n" \ 2099 "/tmp/foo/bar/baz: No such file or directory\n" \ 2100 "$ mkdir -p /tmp/foo/bar/baz\n" 2101 2102#define mke2fs_trivial_usage \ 2103 "[-c|-l filename] [-b block-size] [-f fragment-size] [-g blocks-per-group] " \ 2104 "[-i bytes-per-inode] [-j] [-J journal-options] [-N number-of-inodes] [-n] " \ 2105 "[-m reserved-blocks-percentage] [-o creator-os] [-O feature[,...]] [-q] " \ 2106 "[r fs-revision-level] [-E extended-options] [-v] [-F] [-L volume-label] " \ 2107 "[-M last-mounted-directory] [-S] [-T filesystem-type] " \ 2108 "device [blocks-count]" 2109#define mke2fs_full_usage \ 2110 " -b size Block size in bytes\n" \ 2111 " -c Check for bad blocks before creating\n" \ 2112 " -E opts Set extended options\n" \ 2113 " -f size Fragment size in bytes\n" \ 2114 " -F Force (ignore sanity checks)\n" \ 2115 " -g num Number of blocks in a block group\n" \ 2116 " -i ratio The bytes/inode ratio\n" \ 2117 " -j Create a journal (ext3)\n" \ 2118 " -J opts Set journal options (size/device)\n" \ 2119 " -l file Read bad blocks list from file\n" \ 2120 " -L lbl Set the volume label\n" \ 2121 " -m percent Percent of fs blocks to reserve for admin\n" \ 2122 " -M dir Set last mounted directory\n" \ 2123 " -n Do not actually create anything\n" \ 2124 " -N num Number of inodes to create\n" \ 2125 " -o os Set the 'creator os' field\n" \ 2126 " -O features Dir_index/filetype/has_journal/journal_dev/sparse_super\n" \ 2127 " -q Quiet\n" \ 2128 " -r rev Set filesystem revision\n" \ 2129 " -S Write superblock and group descriptors only\n" \ 2130 " -T fs-type Set usage type (news/largefile/largefile4)\n" \ 2131 " -v Verbose" 2132 2133#define mkfifo_trivial_usage \ 2134 "[OPTIONS] name" 2135#define mkfifo_full_usage \ 2136 "Create a named pipe (identical to 'mknod name p')" \ 2137 "\n\nOptions:\n" \ 2138 " -m Create the pipe using the specified mode (default a=rw)" \ 2139 USE_SELINUX( \ 2140 "\n -Z Set security context" \ 2141 ) 2142 2143#define mkfs_minix_trivial_usage \ 2144 "[-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]" 2145#define mkfs_minix_full_usage \ 2146 "Make a MINIX filesystem" \ 2147 "\n\nOptions:\n" \ 2148 " -c Check the device for bad blocks\n" \ 2149 " -n [14|30] Specify the maximum length of filenames\n" \ 2150 " -i INODES Specify the number of inodes for the filesystem\n" \ 2151 " -l FILENAME Read the bad blocks list from FILENAME\n" \ 2152 " -v Make a Minix version 2 filesystem" 2153 2154#define mknod_trivial_usage \ 2155 "[OPTIONS] NAME TYPE MAJOR MINOR" 2156#define mknod_full_usage \ 2157 "Create a special file (block, character, or pipe)" \ 2158 "\n\nOptions:\n" \ 2159 " -m Create the special file using the specified mode (default a=rw)" \ 2160 "\n\nTYPEs include:\n" \ 2161 " b: Make a block (buffered) device\n" \ 2162 " c or u: Make a character (un-buffered) device\n" \ 2163 " p: Make a named pipe. MAJOR and MINOR are ignored for named pipes" \ 2164 USE_SELINUX( \ 2165 "\n -Z Set security context" \ 2166 ) 2167 2168#define mknod_example_usage \ 2169 "$ mknod /dev/fd0 b 2 0\n" \ 2170 "$ mknod -m 644 /tmp/pipe p\n" 2171 2172#define mkswap_trivial_usage \ 2173 "[-c] [-v0|-v1] device [block-count]" 2174#define mkswap_full_usage \ 2175 "Prepare a disk partition to be used as swap partition" \ 2176 "\n\nOptions:\n" \ 2177 " -c Check for read-ability\n" \ 2178 " -v0 Make version 0 swap [max 128 Megs]\n" \ 2179 " -v1 Make version 1 swap [big!] (default for kernels > 2.1.117)\n" \ 2180 " block-count Number of block to use (default is entire partition)" 2181 2182#define mktemp_trivial_usage \ 2183 "[-dq] TEMPLATE" 2184#define mktemp_full_usage \ 2185 "Create a temporary file with its name based on TEMPLATE.\n" \ 2186 "TEMPLATE is any name with six 'Xs' (i.e., /tmp/temp.XXXXXX)." \ 2187 "\n\nOptions:\n" \ 2188 " -d Make a directory instead of a file\n" \ 2189 " -q Fail silently if an error occurs" 2190#define mktemp_example_usage \ 2191 "$ mktemp /tmp/temp.XXXXXX\n" \ 2192 "/tmp/temp.mWiLjM\n" \ 2193 "$ ls -la /tmp/temp.mWiLjM\n" \ 2194 "-rw------- 1 andersen andersen 0 Apr 25 17:10 /tmp/temp.mWiLjM\n" 2195 2196#define modprobe_trivial_usage \ 2197 "[-knqrsv] MODULE [symbol=value ...]" 2198#define modprobe_full_usage \ 2199 "Options:\n" \ 2200 " -k Make module autoclean-able\n" \ 2201 " -n Just show what would be done\n" \ 2202 " -q Quiet\n" \ 2203 " -r Remove module (stacks) or do autoclean\n" \ 2204 " -s Report via syslog instead of stderr\n" \ 2205 " -v Verbose" 2206#define modprobe_notes_usage \ 2207"modprobe can (un)load a stack of modules, passing each module options (when\n" \ 2208"loading). modprobe uses a configuration file to determine what option(s) to\n" \ 2209"pass each module it loads.\n" \ 2210"\n" \ 2211"The configuration file is searched (in order) amongst:\n" \ 2212"\n" \ 2213" /etc/modprobe.conf (2.6 only)\n" \ 2214" /etc/modules.conf\n" \ 2215" /etc/conf.modules (deprecated)\n" \ 2216"\n" \ 2217"They all have the same syntax (see below). If none is present, it is\n" \ 2218"_not_ an error; each loaded module is then expected to load without\n" \ 2219"options. Once a file is found, the others are tested for.\n" \ 2220"\n" \ 2221"/etc/modules.conf entry format:\n" \ 2222"\n" \ 2223" alias <alias_name> <mod_name>\n" \ 2224" Makes it possible to modprobe alias_name, when there is no such module.\n" \ 2225" It makes sense if your mod_name is long, or you want a more representative\n" \ 2226" name for that module (eg. 'scsi' in place of 'aha7xxx').\n" \ 2227" This makes it also possible to use a different set of options (below) for\n" \ 2228" the module and the alias.\n" \ 2229" A module can be aliased more than once.\n" \ 2230"\n" \ 2231" options <mod_name|alias_name> <symbol=value ...>\n" \ 2232" When loading module mod_name (or the module aliased by alias_name), pass\n" \ 2233" the \"symbol=value\" pairs as option to that module.\n" \ 2234"\n" \ 2235"Sample /etc/modules.conf file:\n" \ 2236"\n" \ 2237" options tulip irq=3\n" \ 2238" alias tulip tulip2\n" \ 2239" options tulip2 irq=4 io=0x308\n" \ 2240"\n" \ 2241"Other functionality offered by 'classic' modprobe is not available in\n" \ 2242"this implementation.\n" \ 2243"\n" \ 2244"If module options are present both in the config file, and on the command line,\n" \ 2245"then the options from the command line will be passed to the module _after_\n" \ 2246"the options from the config file. That way, you can have defaults in the config\n" \ 2247"file, and override them for a specific usage from the command line.\n" 2248#define modprobe_example_usage \ 2249 "(with the above /etc/modules.conf):\n\n" \ 2250 "$ modprobe tulip\n" \ 2251 " will load the module 'tulip' with default option 'irq=3'\n\n" \ 2252 "$ modprobe tulip irq=5\n" \ 2253 " will load the module 'tulip' with option 'irq=5', thus overriding the default\n\n" \ 2254 "$ modprobe tulip2\n" \ 2255 " will load the module 'tulip' with default options 'irq=4 io=0x308',\n" \ 2256 " which are the default for alias 'tulip2'\n\n" \ 2257 "$ modprobe tulip2 irq=8\n" \ 2258 " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=8',\n" \ 2259 " which are the default for alias 'tulip2' overridden by the option 'irq=8'\n\n" \ 2260 " from the command line\n\n" \ 2261 "$ modprobe tulip2 irq=2 io=0x210\n" \ 2262 " will load the module 'tulip' with default options 'irq=4 io=0x308 irq=4 io=0x210',\n" \ 2263 " which are the default for alias 'tulip2' overridden by the options 'irq=2 io=0x210'\n\n" \ 2264 " from the command line\n" 2265 2266#define more_trivial_usage \ 2267 "[FILE ...]" 2268#define more_full_usage \ 2269 "View FILE or standard input one screenful at a time" 2270#define more_example_usage \ 2271 "$ dmesg | more\n" 2272 2273#define mount_trivial_usage \ 2274 "[flags] DEVICE NODE [-o options,more-options]" 2275#define mount_full_usage \ 2276 "Mount a filesystem. Filesystem autodetection requires /proc be mounted." \ 2277 "\n\nOptions:\n" \ 2278 " -a Mount all filesystems in fstab\n" \ 2279 USE_FEATURE_MTAB_SUPPORT( \ 2280 " -f \"Fake\" Add entry to mount table but don't mount it\n" \ 2281 " -n Don't write a mount table entry\n" \ 2282 ) \ 2283 " -o option One of many filesystem options, listed below\n" \ 2284 " -r Mount the filesystem read-only\n" \ 2285 " -t fs-type Specify the filesystem type\n" \ 2286 " -w Mount for reading and writing (default)\n" \ 2287 "\n" \ 2288 "Options for use with the \"-o\" flag:\n" \ 2289 USE_FEATURE_MOUNT_LOOP( \ 2290 " loop Ignored (loop devices are autodetected)\n" \ 2291 ) \ 2292 USE_FEATURE_MOUNT_FLAGS( \ 2293 " [a]sync Writes are asynchronous / synchronous\n" \ 2294 " [no]atime Disable / enable updates to inode access times\n" \ 2295 " [no]diratime Disable / enable atime updates to directories\n" \ 2296 " [no]dev Allow use of special device files / disallow them\n" \ 2297 " [no]exec Allow use of executable files / disallow them\n" \ 2298 " [no]suid Allow set-user-id-root programs / disallow them\n" \ 2299 " [r]shared Convert [recursively] to a shared subtree\n" \ 2300 " [r]slave Convert [recursively] to a slave subtree\n" \ 2301 " [r]private Convert [recursively] to a private subtree\n" \ 2302 " [un]bindable Make mount point [un]able to be bind mounted\n" \ 2303 " bind Bind a directory to an additional location\n" \ 2304 " move Relocate an existing mount point\n" \ 2305 ) \ 2306 " remount Remount a mounted filesystem, changing its flags\n" \ 2307 " ro/rw Mount for read-only / read-write\n" \ 2308 "\n" \ 2309 "There are EVEN MORE flags that are specific to each filesystem\n" \ 2310 "You'll have to see the written documentation for those filesystems" 2311#define mount_example_usage \ 2312 "$ mount\n" \ 2313 "/dev/hda3 on / type minix (rw)\n" \ 2314 "proc on /proc type proc (rw)\n" \ 2315 "devpts on /dev/pts type devpts (rw)\n" \ 2316 "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \ 2317 "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" \ 2318 "$ mount cd_image.iso mydir\n" 2319#define mount_notes_usage \ 2320 "Returns 0 for success, number of failed mounts for -a, or errno for one mount." 2321 2322#define mountpoint_trivial_usage \ 2323 "[-q] <[-d] DIR | -x DEVICE>" 2324#define mountpoint_full_usage \ 2325 "mountpoint checks if the directory is a mountpoint" \ 2326 "\n\nOptions:\n" \ 2327 " -q Quiet\n" \ 2328 " -d Print major/minor device number of the filesystem\n" \ 2329 " -x Print major/minor device number of the blockdevice" 2330#define mountpoint_example_usage \ 2331 "$ mountpoint /proc\n" \ 2332 "/proc is not a mountpoint\n" \ 2333 "$ mountpoint /sys\n" \ 2334 "/sys is a mountpoint\n" 2335 2336#define mt_trivial_usage \ 2337 "[-f device] opcode value" 2338#define mt_full_usage \ 2339 "Control magnetic tape drive operation\n" \ 2340 "\nAvailable Opcodes:\n\n" \ 2341 "bsf bsfm bsr bss datacompression drvbuffer eof eom erase\n" \ 2342 "fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2\n" \ 2343 "ras3 reset retension rewind rewoffline seek setblk setdensity\n" \ 2344 "setpart tell unload unlock weof wset" 2345 2346#define mv_trivial_usage \ 2347 "[OPTION]... SOURCE DEST\n" \ 2348 "or: mv [OPTION]... SOURCE... DIRECTORY" 2349#define mv_full_usage \ 2350 "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY" \ 2351 "\n\nOptions:\n" \ 2352 " -f Don't prompt before overwriting\n" \ 2353 " -i Interactive, prompt before overwrite" 2354#define mv_example_usage \ 2355 "$ mv /tmp/foo /bin/bar\n" 2356 2357#define nameif_trivial_usage \ 2358 "[-s] [-c FILE] [{IFNAME MACADDR}]" 2359#define nameif_full_usage \ 2360 "Rename network interface while it in the down state" \ 2361 "\n\nOptions:\n" \ 2362 " -c FILE Use configuration file (default is /etc/mactab)\n" \ 2363 " -s Use syslog (LOCAL0 facility)\n" \ 2364 " IFNAME MACADDR new_interface_name interface_mac_address" 2365#define nameif_example_usage \ 2366 "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \ 2367 " or\n" \ 2368 "$ nameif -c /etc/my_mactab_file\n" \ 2369 2370#if !ENABLE_DESKTOP 2371 2372#if ENABLE_NC_SERVER || ENABLE_NC_EXTRA 2373#define NC_OPTIONS_STR "\n\nOptions:" 2374#else 2375#define NC_OPTIONS_STR 2376#endif 2377 2378#define nc_trivial_usage \ 2379 USE_NC_EXTRA("[-iN] [-wN] ")USE_NC_SERVER("[-l] [-p PORT] ") \ 2380 "["USE_NC_EXTRA("-f FILENAME|")"IPADDR PORTNUM]"USE_NC_EXTRA(" [-e COMMAND]") 2381#define nc_full_usage \ 2382 "Open a pipe to IP:port" USE_NC_EXTRA(" or file") \ 2383 NC_OPTIONS_STR \ 2384 USE_NC_EXTRA( \ 2385 "\n -e Exec rest of command line after connect" \ 2386 "\n -i SECS Delay interval for lines sent" \ 2387 "\n -w SECS Timeout for connect" \ 2388 "\n -f FILE Use file (ala /dev/ttyS0) instead of network" \ 2389 ) \ 2390 USE_NC_SERVER( \ 2391 "\n -l Listen mode, for inbound connects" \ 2392 USE_NC_EXTRA( \ 2393 "\n (use -l twice with -e for persistent server)") \ 2394 "\n -p PORT Local port number" \ 2395 ) 2396 2397#define nc_notes_usage "" \ 2398 USE_NC_EXTRA( \ 2399 "To use netcat as a terminal emulator on a serial port:\n\n" \ 2400 "$ stty 115200 -F /dev/ttyS0\n" \ 2401 "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \ 2402 ) 2403 2404#define nc_example_usage \ 2405 "$ nc foobar.somedomain.com 25\n" \ 2406 "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \ 2407 "help\n" \ 2408 "214-Commands supported:\n" \ 2409 "214- HELO EHLO MAIL RCPT DATA AUTH\n" \ 2410 "214 NOOP QUIT RSET HELP\n" \ 2411 "quit\n" \ 2412 "221 foobar closing connection\n" 2413 2414#else /* DESKTOP nc - much more compatible with nc 1.10 */ 2415 2416#define nc_trivial_usage \ 2417 "[-options] hostname port - connect" \ 2418 USE_NC_SERVER("\nnc [-options] -l -p port [hostname] [port] - listen") 2419#define nc_full_usage \ 2420 USE_NC_SERVER( \ 2421 "-l Listen mode, for inbound connects\n" \ 2422 ) \ 2423 "-n Do not do DNS resolution" \ 2424 "\n-s addr Local address" \ 2425 "\n-p port Local port" \ 2426 "\n-u UDP mode" \ 2427 "\n-v Verbose (cumulative: -vv)" \ 2428 "\n-w secs Timeout for connects and final net reads" \ 2429 USE_NC_EXTRA( \ 2430 "\n-i sec Delay interval for lines sent" /* ", ports scanned" */ \ 2431 "\n-o file Hex dump of traffic" \ 2432 "\n-z Zero-I/O mode (scanning)" \ 2433 ) \ 2434 "\n-e prog [args] Program to exec after connect (must be last)" \ 2435/* "\n-r Randomize local and remote ports" */ 2436/* "\n-g gateway Source-routing hop point[s], up to 8" */ 2437/* "\n-G num Source-routing pointer: 4, 8, 12, ..." */ 2438/* "\nport numbers can be individual or ranges: lo-hi [inclusive]" */ 2439 2440#endif 2441 2442#define netstat_trivial_usage \ 2443 "[-laentuwxr"USE_FEATURE_NETSTAT_WIDE("W")"]" 2444#define netstat_full_usage \ 2445 "Display networking information" \ 2446 "\n\nOptions:" \ 2447 "\n -l Display listening server sockets" \ 2448 "\n -a Display all sockets (default: connected)" \ 2449 "\n -e Display other/more information" \ 2450 "\n -n Don't resolve names" \ 2451 "\n -t Tcp sockets" \ 2452 "\n -u Udp sockets" \ 2453 "\n -w Raw sockets" \ 2454 "\n -x Unix sockets" \ 2455 "\n -r Display routing table" \ 2456 USE_FEATURE_NETSTAT_WIDE( \ 2457 "\n -W Display with no column truncation" \ 2458 ) 2459 2460#define nice_trivial_usage \ 2461 "[-n ADJUST] [COMMAND [ARG] ...]" 2462#define nice_full_usage \ 2463 "Run a program with modified scheduling priority" \ 2464 "\n\nOptions:\n" \ 2465 " -n ADJUST Adjust the scheduling priority by ADJUST" 2466 2467#define nmeter_trivial_usage \ 2468 "format_string" 2469#define nmeter_full_usage \ 2470 "Monitor system in real time\n\n" \ 2471 "Format specifiers:\n" \ 2472 "%Nc or %[cN] Monitor CPU. N - bar size, default 10\n" \ 2473 " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \ 2474 "%[niface] Monitor network interface 'iface'\n" \ 2475 "%m Monitor allocated memory\n" \ 2476 "%[mf] Monitor free memory\n" \ 2477 "%[mt] Monitor total memory\n" \ 2478 "%s Monitor allocated swap\n" \ 2479 "%f Monitor number of used file descriptors\n" \ 2480 "%Ni Monitor total/specific IRQ rate\n" \ 2481 "%x Monitor context switch rate\n" \ 2482 "%p Monitor forks\n" \ 2483 "%[pn] Monitor # of processes\n" \ 2484 "%b Monitor block io\n" \ 2485 "%Nt Show time (with N decimal points)\n" \ 2486 "%Nd Milliseconds between updates (default=1000)\n" \ 2487 "%r Print <cr> instead of <lf> at EOL" 2488#define nmeter_example_usage \ 2489 "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'" 2490 2491#define nohup_trivial_usage \ 2492 "COMMAND [ARGS]" 2493#define nohup_full_usage \ 2494 "Run a command immune to hangups, with output to a non-tty" 2495#define nohup_example_usage \ 2496 "$ nohup make &" 2497 2498#define nslookup_trivial_usage \ 2499 "[HOST] [SERVER]" 2500#define nslookup_full_usage \ 2501 "Query the nameserver for the IP address of the given HOST\n" \ 2502 "optionally using a specified DNS server" 2503#define nslookup_example_usage \ 2504 "$ nslookup localhost\n" \ 2505 "Server: default\n" \ 2506 "Address: default\n" \ 2507 "\n" \ 2508 "Name: debian\n" \ 2509 "Address: 127.0.0.1\n" 2510 2511#define od_trivial_usage \ 2512 "[-aBbcDdeFfHhIiLlOovXx] [FILE]" 2513#define od_full_usage \ 2514 "Write an unambiguous representation, octal bytes by default, of FILE\n" \ 2515 "to standard output. With no FILE, or when FILE is -, read standard input." 2516 2517#define openvt_trivial_usage \ 2518 "VTNUM COMMAND [ARGS...]" 2519#define openvt_full_usage \ 2520 "Start a command on a new virtual terminal" 2521#define openvt_example_usage \ 2522 "openvt 2 /bin/ash\n" 2523 2524#define passwd_trivial_usage \ 2525 "[OPTION] [name]" 2526#define passwd_full_usage \ 2527 "Change a user password. If no name is specified,\n" \ 2528 "changes the password for the current user." \ 2529 "\n\nOptions:\n" \ 2530 " -a Define which algorithm shall be used for the password\n" \ 2531 " (choices: des, md5)\n" /* ", sha1)" */ \ 2532 " -d Delete the password for the specified user account\n" \ 2533 " -l Locks (disables) the specified user account\n" \ 2534 " -u Unlocks (re-enables) the specified user account" 2535 2536#define chpasswd_trivial_usage \ 2537 "[--md5|--encrypt]" 2538#define chpasswd_full_usage \ 2539 "Read user:password information from stdin\n" \ 2540 "and update /etc/passwd accordingly." \ 2541 "\n\nOptions:" \ 2542 "\n -e, --encrypt Supplied passwords are in encrypted form" \ 2543 "\n -m, --md5 Use MD5 encryption instead of DES" 2544 2545#define patch_trivial_usage \ 2546 "[-p num] [-i diff]" 2547#define patch_full_usage \ 2548 " -p NUM Strip NUM leading components from file names\n" \ 2549 " -i DIFF Read DIFF instead of stdin" 2550#define patch_example_usage \ 2551 "$ patch -p1 < example.diff\n" \ 2552 "$ patch -p0 -i example.diff" 2553 2554#if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) 2555#define USAGE_PIDOF "Options:" 2556#else 2557#define USAGE_PIDOF "\nThis version of pidof accepts no options." 2558#endif 2559 2560#define pidof_trivial_usage \ 2561 "process-name [OPTION] [process-name ...]" 2562 2563#define pidof_full_usage \ 2564 "List the PIDs of all processes with names that match the\n" \ 2565 "names on the command line\n" \ 2566 USAGE_PIDOF \ 2567 USE_FEATURE_PIDOF_SINGLE( \ 2568 "\n -s Display only a single PID") \ 2569 USE_FEATURE_PIDOF_OMIT( \ 2570 "\n -o PID Omit given pid") \ 2571 USE_FEATURE_PIDOF_OMIT( \ 2572 "\n Use %PPID to omit the parent pid of pidof itself") 2573#define pidof_example_usage \ 2574 "$ pidof init\n" \ 2575 "1\n" \ 2576 USE_FEATURE_PIDOF_OMIT( \ 2577 "$ pidof /bin/sh\n20351 5973 5950\n") \ 2578 USE_FEATURE_PIDOF_OMIT( \ 2579 "$ pidof /bin/sh -o %PPID\n20351 5950") 2580 2581#if !ENABLE_FEATURE_FANCY_PING 2582#define ping_trivial_usage \ 2583 "host" 2584#define ping_full_usage \ 2585 "Send ICMP ECHO_REQUEST packets to network hosts" 2586#define ping6_trivial_usage \ 2587 "host" 2588#define ping6_full_usage \ 2589 "Send ICMP ECHO_REQUEST packets to network hosts" 2590#else 2591#define ping_trivial_usage \ 2592 "[OPTION]... host" 2593#define ping_full_usage \ 2594 "Send ICMP ECHO_REQUEST packets to network hosts" \ 2595 "\n\nOptions:\n" \ 2596 " -4, -6 Force IPv4 or IPv6 hostname resolution\n" \ 2597 " -c CNT Send only CNT pings\n" \ 2598 " -s SIZE Send SIZE data bytes in packets (default=56)\n" \ 2599 " -I iface/IP Use interface or IP address as source\n" \ 2600 " -q Quiet, only displays output at start\n" \ 2601 " and when finished" 2602#define ping6_trivial_usage \ 2603 "[OPTION]... host" 2604#define ping6_full_usage \ 2605 "Send ICMP ECHO_REQUEST packets to network hosts" \ 2606 "\n\nOptions:\n" \ 2607 " -c CNT Send only CNT pings\n" \ 2608 " -s SIZE Send SIZE data bytes in packets (default=56)\n" \ 2609 " -I iface/IP Use interface or IP address as source\n" \ 2610 " -q Quiet, only displays output at start\n" \ 2611 " and when finished" 2612#endif 2613#define ping_example_usage \ 2614 "$ ping localhost\n" \ 2615 "PING slag (127.0.0.1): 56 data bytes\n" \ 2616 "64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=20.1 ms\n" \ 2617 "\n" \ 2618 "--- debian ping statistics ---\n" \ 2619 "1 packets transmitted, 1 packets received, 0% packet loss\n" \ 2620 "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" 2621#define ping6_example_usage \ 2622 "$ ping6 ip6-localhost\n" \ 2623 "PING ip6-localhost (::1): 56 data bytes\n" \ 2624 "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \ 2625 "\n" \ 2626 "--- ip6-localhost ping statistics ---\n" \ 2627 "1 packets transmitted, 1 packets received, 0% packet loss\n" \ 2628 "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" 2629 2630#define pivot_root_trivial_usage \ 2631 "NEW_ROOT PUT_OLD" 2632#define pivot_root_full_usage \ 2633 "Move the current root file system to PUT_OLD and make NEW_ROOT\n" \ 2634 "the new root file system" 2635 2636#define poweroff_trivial_usage \ 2637 "[-d delay] [-n] [-f]" 2638#define poweroff_full_usage \ 2639 "Halt and shut off power" \ 2640 "\n\nOptions:\n" \ 2641 " -d Delay interval for halting\n" \ 2642 " -n No call to sync()\n" \ 2643 " -f Force power off (don't go through init)" 2644 2645#define printenv_trivial_usage \ 2646 "[VARIABLES...]" 2647#define printenv_full_usage \ 2648 "Print all or part of environment.\n" \ 2649 "If no environment VARIABLE specified, print them all." 2650 2651#define printf_trivial_usage \ 2652 "FORMAT [ARGUMENT...]" 2653#define printf_full_usage \ 2654 "Format and print ARGUMENT(s) according to FORMAT,\n" \ 2655 "where FORMAT controls the output exactly as in C printf" 2656#define printf_example_usage \ 2657 "$ printf \"Val=%d\\n\" 5\n" \ 2658 "Val=5\n" 2659 2660 2661#if ENABLE_DESKTOP 2662 2663#define ps_trivial_usage \ 2664 "" 2665#define ps_full_usage \ 2666 "Report process status" \ 2667 "\n\nOptions:" \ 2668 "\n -o col1,col2=header Select columns for display" \ 2669 2670#else /* !ENABLE_DESKTOP */ 2671 2672#if !defined CONFIG_SELINUX && !ENABLE_FEATURE_PS_WIDE 2673#define USAGE_PS "\nThis version of ps accepts no options" 2674#else 2675#define USAGE_PS "\nOptions:" 2676#endif 2677 2678#define ps_trivial_usage \ 2679 "" 2680#define ps_full_usage \ 2681 "Report process status\n" \ 2682 USAGE_PS \ 2683 USE_SELINUX( \ 2684 "\n -Z Show SE Linux context") \ 2685 USE_FEATURE_PS_WIDE( \ 2686 "\n w Wide output") 2687 2688#endif /* ENABLE_DESKTOP */ 2689 2690#define ps_example_usage \ 2691 "$ ps\n" \ 2692 " PID Uid Gid State Command\n" \ 2693 " 1 root root S init\n" \ 2694 " 2 root root S [kflushd]\n" \ 2695 " 3 root root S [kupdate]\n" \ 2696 " 4 root root S [kpiod]\n" \ 2697 " 5 root root S [kswapd]\n" \ 2698 " 742 andersen andersen S [bash]\n" \ 2699 " 743 andersen andersen S -bash\n" \ 2700 " 745 root root S [getty]\n" \ 2701 " 2990 andersen andersen R ps\n" 2702 2703#define pscan_trivial_usage \ 2704 "[-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST" 2705#define pscan_full_usage \ 2706 "Scan a host, print all open ports" \ 2707 "\n\nOptions:" \ 2708 "\n -p Scan from this port (default 1)" \ 2709 "\n -P Scan up to this port (default 1024)" \ 2710 "\n -t Timeout (default 5000 ms)" \ 2711 "\n -T Minimum rtt (default 5 ms, increase for congested hosts)" \ 2712 2713#define pwd_trivial_usage \ 2714 "" 2715#define pwd_full_usage \ 2716 "Print the full filename of the current working directory" 2717#define pwd_example_usage \ 2718 "$ pwd\n" \ 2719 "/root\n" 2720 2721#define raidautorun_trivial_usage \ 2722 "DEVICE" 2723#define raidautorun_full_usage \ 2724 "Tell the kernel to automatically search and start RAID arrays" 2725#define raidautorun_example_usage \ 2726 "$ raidautorun /dev/md0" 2727 2728#define rdate_trivial_usage \ 2729 "[-sp] HOST" 2730#define rdate_full_usage \ 2731 "Get and possibly set the system date and time from a remote HOST" \ 2732 "\n\nOptions:\n" \ 2733 " -s Set the system date and time (default)\n" \ 2734 " -p Print the date and time" 2735 2736#define readahead_trivial_usage \ 2737 "[FILE]..." 2738#define readahead_full_usage \ 2739 "Preload FILE(s) in RAM cache so that subsequent reads for those" \ 2740 "files do not block on disk I/O" 2741 2742#define readlink_trivial_usage \ 2743 USE_FEATURE_READLINK_FOLLOW("[-f] ") "FILE" 2744#define readlink_full_usage \ 2745 "Display the value of a symlink" \ 2746 USE_FEATURE_READLINK_FOLLOW( \ 2747 "\n\nOptions:\n" \ 2748 " -f Canonicalize by following all symlinks") 2749 2750#define readprofile_trivial_usage \ 2751 "[OPTIONS]..." 2752#define readprofile_full_usage \ 2753 "Options:\n" \ 2754 " -m mapfile (Default: /boot/System.map)\n" \ 2755 " -p profile (Default: /proc/profile)\n" \ 2756 " -M mult Set the profiling multiplier to mult\n" \ 2757 " -i Print only info about the sampling step\n" \ 2758 " -v Verbose\n" \ 2759 " -a Print all symbols, even if count is 0\n" \ 2760 " -b Print individual histogram-bin counts\n" \ 2761 " -s Print individual counters within functions\n" \ 2762 " -r Reset all the counters (root only)\n" \ 2763 " -n Disable byte order auto-detection" 2764 2765#define realpath_trivial_usage \ 2766 "pathname ..." 2767#define realpath_full_usage \ 2768 "Return the absolute pathnames of given argument" 2769 2770#define reboot_trivial_usage \ 2771 "[-d delay] [-n] [-f]" 2772#define reboot_full_usage \ 2773 "Reboot the system" \ 2774 "\n\nOptions:\n" \ 2775 " -d Delay interval for rebooting\n" \ 2776 " -n No call to sync()\n" \ 2777 " -f Force reboot (don't go through init)" 2778 2779#define renice_trivial_usage \ 2780 "{{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID ...]" 2781#define renice_full_usage \ 2782 "Change priority of running processes" \ 2783 "\n\nOptions:\n" \ 2784 " -n Adjusts current nice value (smaller is faster)\n" \ 2785 " -p Process id(s) (default)\n" \ 2786 " -g Process group id(s)\n" \ 2787 " -u Process user name(s) and/or id(s)" 2788 2789#define reset_trivial_usage \ 2790 "" 2791#define reset_full_usage \ 2792 "Reset the screen" 2793 2794#define resize_trivial_usage \ 2795 "" 2796#define resize_full_usage \ 2797 "Resize the screen" 2798 2799#define restorecon_trivial_usage \ 2800 "[-iFnrRv] [-e excludedir]... [-o filename] [-f filename | pathname]" 2801#define restorecon_full_usage \ 2802 "Reset security contexts of files in pathname\n" \ 2803 "\n -i Ignore files that do not exist" \ 2804 "\n -f filename File with list of files to process. Use - for stdin" \ 2805 "\n -e directory Directory to exclude" \ 2806 "\n -R,-r Recurse directories" \ 2807 "\n -n Don't change any file labels" \ 2808 "\n -o filename Save list of files with incorrect context" \ 2809 "\n -v Verbose" \ 2810 "\n -vv Show changed labels" \ 2811 "\n -F Force reset of context to match file_context" \ 2812 "\n for customizable files, or the user section," \ 2813 "\n if it has changed" 2814 2815#define rm_trivial_usage \ 2816 "[OPTION]... FILE..." 2817#define rm_full_usage \ 2818 "Remove (unlink) the FILE(s). You may use '--' to\n" \ 2819 "indicate that all following arguments are non-options." \ 2820 "\n\nOptions:\n" \ 2821 " -i Always prompt before removing each destination\n" \ 2822 " -f Remove existing destinations, never prompt\n" \ 2823 " -r,-R Remove the contents of directories recursively" 2824#define rm_example_usage \ 2825 "$ rm -rf /tmp/foo\n" 2826 2827#define rmdir_trivial_usage \ 2828 "[OPTION]... DIRECTORY..." 2829#define rmdir_full_usage \ 2830 "Remove the DIRECTORY, if it is empty" 2831#define rmdir_example_usage \ 2832 "# rmdir /tmp/foo\n" 2833 2834#define rmmod_trivial_usage \ 2835 "[OPTION]... [MODULE]..." 2836#define rmmod_full_usage \ 2837 "Unload the specified kernel modules from the kernel" \ 2838 "\n\nOptions:\n" \ 2839 " -a Remove all unused modules (recursively)" 2840#define rmmod_example_usage \ 2841 "$ rmmod tulip\n" 2842 2843#define route_trivial_usage \ 2844 "[{add|del|delete}]" 2845#define route_full_usage \ 2846 "Edit the kernel's routing tables" \ 2847 "\n\nOptions:\n" \ 2848 " -n Dont resolve names\n" \ 2849 " -e Display other/more information\n" \ 2850 " -A inet" USE_FEATURE_IPV6("{6}") " Select address family" 2851 2852#define rpm_trivial_usage \ 2853 "-i -q[ildc]p package.rpm" 2854#define rpm_full_usage \ 2855 "Manipulate RPM packages" \ 2856 "\n\nOptions:" \ 2857 "\n -i Install package" \ 2858 "\n -q Query package" \ 2859 "\n -p Query uninstalled package" \ 2860 "\n -i Show information" \ 2861 "\n -l List contents" \ 2862 "\n -d List documents" \ 2863 "\n -c List config files" 2864 2865#define rpm2cpio_trivial_usage \ 2866 "package.rpm" 2867#define rpm2cpio_full_usage \ 2868 "Output a cpio archive of the rpm file" 2869 2870#define runcon_trivial_usage \ 2871 "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \ 2872 " runcon CONTEXT COMMAND [args]" 2873#define runcon_full_usage \ 2874 "runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n" \ 2875 "runcon CONTEXT COMMAND [args]\n" \ 2876 "Run a program in a different security context\n\n" \ 2877 " CONTEXT Complete security context\n" \ 2878 " -c, --compute Compute process transition context before modifying\n" \ 2879 " -t, --type=TYPE Type (for same role as parent)\n" \ 2880 " -u, --user=USER User identity\n" \ 2881 " -r, --role=ROLE Role\n" \ 2882 " -l, --range=RNG Levelrange" \ 2883 2884#define run_parts_trivial_usage \ 2885 "[-t] "USE_FEATURE_RUN_PARTS_FANCY("[-l] ")"[-a ARG] [-u MASK] DIRECTORY" 2886#define run_parts_full_usage \ 2887 "Run a bunch of scripts in a directory" \ 2888 "\n\nOptions:\n" \ 2889 " -t Prints what would be run, but does not actually run anything\n" \ 2890 " -a ARG Pass ARG as an argument for every program invoked\n" \ 2891 " -u MASK Set the umask to MASK before executing every program" \ 2892USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when they are not executable") 2893 2894#define run_parts_example_usage \ 2895 "$ run-parts -a start /etc/init.d\n" \ 2896 "$ run-parts -a stop=now /etc/init.d\n\n" \ 2897 "Let's assume you have a script foo/dosomething:\n" \ 2898 "#!/bin/sh\n" \ 2899 "for i in $*; do eval $i; done; unset i\n" \ 2900 "case \"$1\" in\n" \ 2901 "start*) echo starting something;;\n" \ 2902 "stop*) set -x; shutdown -h $stop;;\n" \ 2903 "esac\n\n" \ 2904 "Running this yields:\n" \ 2905 "$run-parts -a stop=+4m foo/\n" \ 2906 "+ shutdown -h +4m" 2907 2908#define runlevel_trivial_usage \ 2909 "[utmp]" 2910#define runlevel_full_usage \ 2911 "Find the current and previous system runlevel.\n\n" \ 2912 "If no utmp file exists or if no runlevel record can be found,\n" \ 2913 "print \"unknown\"" 2914#define runlevel_example_usage \ 2915 "$ runlevel /var/run/utmp\n" \ 2916 "N 2" 2917 2918#define runsv_trivial_usage \ 2919 "dir" 2920#define runsv_full_usage \ 2921 "Start and monitor a service and optionally an appendant log service" 2922 2923#define runsvdir_trivial_usage \ 2924 "[-P] dir" 2925#define runsvdir_full_usage \ 2926 "Start a runsv process for each subdirectory" 2927 2928#define rx_trivial_usage \ 2929 "FILE" 2930#define rx_full_usage \ 2931 "Receive a file using the xmodem protocol" 2932#define rx_example_usage \ 2933 "$ rx /tmp/foo\n" 2934 2935#define sed_trivial_usage \ 2936 "[-efinr] pattern [files...]" 2937#define sed_full_usage \ 2938 "Options:\n" \ 2939 " -e script Add the script to the commands to be executed\n" \ 2940 " -f scriptfile Add script-file contents to the\n" \ 2941 " commands to be executed\n" \ 2942 " -i Edit files in-place\n" \ 2943 " -n Suppress automatic printing of pattern space\n" \ 2944 " -r Use extended regular expression syntax\n" \ 2945 "\n" \ 2946 "If no -e or -f is given, the first non-option argument is taken as the sed\n" \ 2947 "script to interpret. All remaining arguments are names of input files; if no\n" \ 2948 "input files are specified, then the standard input is read. Source files\n" \ 2949 "will not be modified unless -i option is given." 2950 2951#define sed_example_usage \ 2952 "$ echo \"foo\" | sed -e 's/f[a-zA-Z]o/bar/g'\n" \ 2953 "bar\n" 2954 2955#define selinuxenabled_trivial_usage 2956#define selinuxenabled_full_usage 2957 2958#define seq_trivial_usage \ 2959 "[first [increment]] last" 2960#define seq_full_usage \ 2961 "Print numbers from FIRST to LAST, in steps of INCREMENT.\n" \ 2962 "FIRST, INCREMENT default to 1" \ 2963 "\n\nArguments:\n" \ 2964 " LAST\n" \ 2965 " FIRST LAST\n" \ 2966 " FIRST INCREMENT LAST" 2967 2968#define setconsole_trivial_usage \ 2969 "[-r|--reset] [DEVICE]" 2970#define setconsole_full_usage \ 2971 "Redirect system console output to DEVICE (default: /dev/tty)" \ 2972 "\n\nOptions:\n" \ 2973 " -r Reset output to /dev/console" 2974 2975#define setenforce_trivial_usage \ 2976 "[Enforcing | Permissive | 1 | 0]" 2977#define setenforce_full_usage 2978 2979#define setfiles_trivial_usage \ 2980 "[-dnpqsvW] [-e dir]... [-o filename] [-r alt_root_path]" \ 2981 USE_FEATURE_SETFILES_CHECK_OPTION( \ 2982 " [-c policyfile] spec_file" \ 2983 ) \ 2984 " pathname" 2985 2986#define setfiles_full_usage \ 2987 "Reset file contexts under pathname according to spec_file" \ 2988 USE_FEATURE_SETFILES_CHECK_OPTION( \ 2989 "\n -c file Check the validity of the contexts against the specified binary policy" \ 2990 ) \ 2991 "\n -d Show which specification matched each file" \ 2992 "\n -l Log changes in file labels to syslog" \ 2993 "\n -n Don't change any file labels" \ 2994 "\n -q Suppress warnings" \ 2995 "\n -r dir Use an altenate root path" \ 2996 "\n -e dir Exclude directory" \ 2997 "\n -F Force reset of context to match file_context for customizable files" \ 2998 "\n -o file Save list of files with incorrect context" \ 2999 "\n -s Take a list of files from standard input (instead of command line)" \ 3000 "\n -v Show changes in file labels, if type or role are changing" \ 3001 "\n -vv Show changes in file labels, if type, role, or user are changing" \ 3002 "\n -W Display warnings about entries that had no matching files" 3003 3004#define setkeycodes_trivial_usage \ 3005 "SCANCODE KEYCODE ..." 3006#define setkeycodes_full_usage \ 3007 "Set entries into the kernel's scancode-to-keycode map,\n" \ 3008 "allowing unusual keyboards to generate usable keycodes.\n\n" \ 3009 "SCANCODE may be either xx or e0xx (hexadecimal),\n" \ 3010 "and KEYCODE is given in decimal" 3011#define setkeycodes_example_usage \ 3012 "$ setkeycodes e030 127\n" 3013 3014#define setlogcons_trivial_usage \ 3015 "N" 3016#define setlogcons_full_usage \ 3017 "Redirect the kernel output to console N (0 for current)" 3018 3019#define setsid_trivial_usage \ 3020 "program [arg ...]" 3021#define setsid_full_usage \ 3022 "Run any program in a new session by calling setsid() before\n" \ 3023 "exec'ing the rest of its arguments. See setsid(2) for details." 3024 3025#define lash_trivial_usage \ 3026 "[FILE]...\n" \ 3027 "or: sh -c command [args]..." 3028#define lash_full_usage \ 3029 "The BusyBox LAme SHell (command interpreter)" 3030#define lash_notes_usage \ 3031 "This command does not yet have proper documentation.\n\n" \ 3032 "Use lash just as you would use any other shell. It properly handles pipes,\n" \ 3033 "redirects, job control, can be used as the shell for scripts, and has a\n" \ 3034 "sufficient set of builtins to do what is needed. It does not (yet) support\n" \ 3035 "Bourne Shell syntax. If you need things like \"if-then-else\", \"while\", and such\n" \ 3036 "use ash or bash. If you just need a very simple and extremely small shell,\n" \ 3037 "this will do the job." 3038 3039#define last_trivial_usage \ 3040 "" 3041#define last_full_usage \ 3042 "Show listing of the last users that logged into the system" 3043 3044#define sha1sum_trivial_usage \ 3045 "[OPTION] [FILEs...]" \ 3046 USE_FEATURE_MD5_SHA1_SUM_CHECK("\n or: sha1sum [OPTION] -c [FILE]") 3047#define sha1sum_full_usage \ 3048 "Print" USE_FEATURE_MD5_SHA1_SUM_CHECK(" or check") " SHA1 checksums.\n" \ 3049 "With no FILE, or when FILE is -, read standard input." \ 3050 "\n\nOptions:\n" \ 3051 USE_FEATURE_MD5_SHA1_SUM_CHECK( \ 3052 " -c Check SHA1 sums against given list\n" \ 3053 "\nThe following two options are useful only when verifying checksums:\n" \ 3054 " -s Don't output anything, status code shows success\n" \ 3055 " -w Warn about improperly formatted SHA1 checksum lines") 3056 3057#define slattach_trivial_usage \ 3058 "[-cehmLF] [-s speed] [-p protocol] DEVICEs" 3059#define slattach_full_usage \ 3060 "Attach network interface(s) to serial line(s)\n" \ 3061 "\nOptions:" \ 3062 "\n -p Set protocol (slip, cslip, slip6, clisp6 or adaptive)" \ 3063 "\n -s Set line speed" \ 3064 "\n -e Exit after initializing device" \ 3065 "\n -h Exit when the carrier is lost" \ 3066 "\n -c Execute a command when the line is hung up" \ 3067 "\n -m Do NOT initialize the line in raw 8 bits mode" \ 3068 "\n -L Enable 3-wire operation" \ 3069 "\n -F Disable RTS/CTS flow control" \ 3070 3071#define sleep_trivial_usage \ 3072 USE_FEATURE_FANCY_SLEEP("[") "N" USE_FEATURE_FANCY_SLEEP("]...") 3073#define sleep_full_usage \ 3074 SKIP_FEATURE_FANCY_SLEEP("Pause for N seconds") \ 3075 USE_FEATURE_FANCY_SLEEP( \ 3076 "Pause for a time equal to the total of the args given, where each arg can\n" \ 3077 "have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays") 3078#define sleep_example_usage \ 3079 "$ sleep 2\n" \ 3080 "[2 second delay results]\n" \ 3081 USE_FEATURE_FANCY_SLEEP( \ 3082 "$ sleep 1d 3h 22m 8s\n" \ 3083 "[98528 second delay results]\n") 3084 3085#define sort_trivial_usage \ 3086 "[-nru" \ 3087 USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") \ 3088 "] [FILE]..." 3089#define sort_full_usage \ 3090 "Sort lines of text in the specified files" \ 3091 "\n\nOptions:\n" \ 3092 USE_FEATURE_SORT_BIG( \ 3093 " -b Ignore leading blanks\n" \ 3094 " -c Check whether input is sorted\n" \ 3095 " -d Dictionary order (blank or alphanumeric only)\n" \ 3096 " -f Ignore case\n" \ 3097 " -g General numerical sort\n" \ 3098 " -i Ignore unprintable characters\n" \ 3099 " -k Specify sort key\n" \ 3100 " -M Sort month\n") \ 3101 " -n Sort numbers\n" \ 3102 USE_FEATURE_SORT_BIG( \ 3103 " -o Output to file\n" \ 3104 " -k Sort by key\n" \ 3105 " -t Use key separator other than whitespace\n") \ 3106 " -r Reverse sort order\n" \ 3107 USE_FEATURE_SORT_BIG( \ 3108 " -s Stable (don't sort ties alphabetically)\n") \ 3109 " -u Suppress duplicate lines" \ 3110 USE_FEATURE_SORT_BIG( \ 3111 "\n -z Input terminated by nulls, not newlines\n") \ 3112 USE_FEATURE_SORT_BIG( \ 3113 " -mST Ignored for GNU compatibility") \ 3114 "" 3115#define sort_example_usage \ 3116 "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \ 3117 "a\n" \ 3118 "b\n" \ 3119 "c\n" \ 3120 "d\n" \ 3121 "e\n" \ 3122 "f\n" \ 3123 USE_FEATURE_SORT_BIG( \ 3124 "$ echo -e \"c 3\\nb 2\\nd 2\" | $SORT -k 2,2n -k 1,1r\n" \ 3125 "d 2\n" \ 3126 "b 2\n" \ 3127 "c 3\n" \ 3128 ) \ 3129 "" 3130 3131#define split_trivial_usage \ 3132 "[OPTION] [INPUT [PREFIX]]" 3133#define split_full_usage \ 3134 "Options:" \ 3135 "\n -b n[k|m] Split by bytes" \ 3136 "\n -l n Split by lines" \ 3137 "\n -a n Use n letters as suffix" 3138#define split_example_usage \ 3139 "$ split TODO foo\n" \ 3140 "$ cat TODO | split -a 2 -l 2 TODO_\n" 3141 3142#define start_stop_daemon_trivial_usage \ 3143 "[OPTIONS] [--start|--stop] ... [-- arguments...]" 3144#define start_stop_daemon_full_usage \ 3145 "Start and stop services" \ 3146 "\n\nOptions:" \ 3147 "\n -S|--start Start" \ 3148 "\n -K|--stop Stop" \ 3149 "\n -a|--startas pathname Starts process specified by pathname" \ 3150 "\n -b|--background Force process into background" \ 3151 "\n -u|--user username|uid Stop this user's processes" \ 3152 "\n -x|--exec executable Program to either start or check" \ 3153 "\n -m|--make-pidfile Create the -p file and enter pid in it" \ 3154 "\n -n|--name process-name Stop processes with this name" \ 3155 "\n -p|--pidfile pid-file Save or load pid using a pid-file" \ 3156 "\n -q|--quiet Quiet" \ 3157 USE_FEATURE_START_STOP_DAEMON_FANCY( \ 3158 "\n -o|--oknodo Exit status 0 if nothing done" \ 3159 "\n -v|--verbose Verbose" \ 3160 "\n -N|--nicelevel N Add N to process's nice level" \ 3161 ) \ 3162 "\n -s|--signal signal Signal to send (default TERM)" \ 3163 "\n -c|--chuid user[:[group]] Change to specified user/group" 3164 3165#define stat_trivial_usage \ 3166 "[OPTION] FILE..." 3167#define stat_full_usage \ 3168 "Display file (default) or filesystem status" \ 3169 "\n\nOptions:\n" \ 3170 USE_FEATURE_STAT_FORMAT( \ 3171 " -c fmt Use the specified format\n") \ 3172 " -f Display filesystem status\n" \ 3173 " -L,-l Dereference links\n" \ 3174 " -t Display info in terse form" \ 3175 USE_SELINUX( \ 3176 "\n -Z Print security context" \ 3177 ) \ 3178 USE_FEATURE_STAT_FORMAT( \ 3179 "\n\nValid format sequences for files:\n" \ 3180 " %a Access rights in octal\n" \ 3181 " %A Access rights in human readable form\n" \ 3182 " %b Number of blocks allocated (see %B)\n" \ 3183 " %B The size in bytes of each block reported by %b\n" \ 3184 " %d Device number in decimal\n" \ 3185 " %D Device number in hex\n" \ 3186 " %f Raw mode in hex\n" \ 3187 " %F File type\n" \ 3188 " %g Group ID of owner\n" \ 3189 " %G Group name of owner\n" \ 3190 " %h Number of hard links\n" \ 3191 " %i Inode number\n" \ 3192 " %n File name\n" \ 3193 " %N Quoted file name with dereference if symlink\n" \ 3194 " %o I/O block size\n" \ 3195 " %s Total size, in bytes\n" \ 3196 " %t Major device type in hex\n" \ 3197 " %T Minor device type in hex\n" \ 3198 " %u User ID of owner\n" \ 3199 " %U User name of owner\n" \ 3200 " %x Time of last access\n" \ 3201 " %X Time of last access as seconds since Epoch\n" \ 3202 " %y Time of last modification\n" \ 3203 " %Y Time of last modification as seconds since Epoch\n" \ 3204 " %z Time of last change\n" \ 3205 " %Z Time of last change as seconds since Epoch\n" \ 3206 "\nValid format sequences for file systems:\n" \ 3207 " %a Free blocks available to non-superuser\n" \ 3208 " %b Total data blocks in file system\n" \ 3209 " %c Total file nodes in file system\n" \ 3210 " %d Free file nodes in file system\n" \ 3211 " %f Free blocks in file system\n" \ 3212 USE_SELINUX( \ 3213 " %C Security context in SELinux\n" \ 3214 ) \ 3215 " %i File System ID in hex\n" \ 3216 " %l Maximum length of filenames\n" \ 3217 " %n File name\n" \ 3218 " %s Block size (for faster transfer)\n" \ 3219 " %S Fundamental block size (for block counts)\n" \ 3220 " %t Type in hex\n" \ 3221 " %T Type in human readable form" \ 3222 ) 3223 3224#define strings_trivial_usage \ 3225 "[-afo] [-n length] [file ...]" 3226#define strings_full_usage \ 3227 "Display printable strings in a binary file" \ 3228 "\n\nOptions:" \ 3229 "\n -a Scan the whole files (this is the default)" \ 3230 "\n -f Precede each string with the name of the file where it was found" \ 3231 "\n -n N Specifies that at least N characters forms a sequence (default 4)" \ 3232 "\n -o Each string is preceded by its decimal offset in the file" 3233 3234#define stty_trivial_usage \ 3235 "[-a|g] [-F DEVICE] [SETTING]..." 3236#define stty_full_usage \ 3237 "Without arguments, prints baud rate, line discipline,\n" \ 3238 "and deviations from stty sane" \ 3239 "\n\nOptions:" \ 3240 "\n -F DEVICE Open device instead of stdin" \ 3241 "\n -a Print all current settings in human-readable form" \ 3242 "\n -g Print in stty-readable form" \ 3243 "\n [SETTING] See manpage" 3244 3245#define su_trivial_usage \ 3246 "[OPTION]... [-] [username]" 3247#define su_full_usage \ 3248 "Change user id or become root" \ 3249 "\n\nOptions:" \ 3250 "\n -p, -m Preserve environment" \ 3251 "\n -c Command to pass to 'sh -c'" \ 3252 "\n -s Shell to use instead of default shell" 3253 3254#define sulogin_trivial_usage \ 3255 "[OPTION]... [tty-device]" 3256#define sulogin_full_usage \ 3257 "Single user login" \ 3258 "\n\nOptions:" \ 3259 "\n -t Timeout" 3260 3261#define sum_trivial_usage \ 3262 "[rs] [files...]" 3263#define sum_full_usage \ 3264 "Checksum and count the blocks in a file" \ 3265 "\n\nOptions:\n" \ 3266 " -r Use BSD sum algorithm (1K blocks)\n" \ 3267 " -s Use System V sum algorithm (512byte blocks)" 3268 3269#define sv_trivial_usage \ 3270 "[-v] [-w sec] command service..." 3271#define sv_full_usage \ 3272 "Control services monitored by runsv supervisor.\n" \ 3273 "Commands (only first character is enough):\n" \ 3274 "\n" \ 3275 "status: query service status\n" \ 3276 "up: if service isn't running, start it. If service stops, restart it\n" \ 3277 "once: like 'up', but if service stops, don't restart it\n" \ 3278 "down: send TERM and CONT signals. If ./run exits, start ./finish\n" \ 3279 " if it exists. After it stops, do not restart service\n" \ 3280 "exit: send TERM and CONT signals to service and log service. If they exit,\n" \ 3281 " runsv exits too\n" \ 3282 "pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send\n" \ 3283 "STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service" 3284 3285#define svlogd_trivial_usage \ 3286 "[-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir..." 3287#define svlogd_full_usage \ 3288 "Continuously read log data from standard input, optionally " \ 3289 "filter log messages, and write the data to one or more automatically " \ 3290 "rotated logs" 3291 3292#define swapoff_trivial_usage \ 3293 "[-a] [DEVICE]" 3294#define swapoff_full_usage \ 3295 "Stop swapping virtual memory pages on DEVICE" \ 3296 "\n\nOptions:\n" \ 3297 " -a Stop swapping on all swap devices" 3298 3299#define swapon_trivial_usage \ 3300 "[-a] [DEVICE]" 3301#define swapon_full_usage \ 3302 "Start swapping virtual memory pages on DEVICE" \ 3303 "\n\nOptions:\n" \ 3304 " -a Start swapping on all swap devices" 3305 3306#define switch_root_trivial_usage \ 3307 "[-c /dev/console] NEW_ROOT NEW_INIT [ARGUMENTS_TO_INIT]" 3308#define switch_root_full_usage \ 3309 "Use from PID 1 under initramfs to free initramfs, chroot to NEW_ROOT,\n" \ 3310 "and exec NEW_INIT" \ 3311 "\n\nOptions:\n" \ 3312 " -c Redirect console to device on new root" 3313 3314#define sync_trivial_usage \ 3315 "" 3316#define sync_full_usage \ 3317 "Write all buffered filesystem blocks to disk" 3318 3319#define sysctl_trivial_usage \ 3320 "[OPTIONS]... [VALUE]..." 3321#define sysctl_full_usage \ 3322 "Configure kernel parameters at runtime" \ 3323 "\n\nOptions:\n" \ 3324 " -n Use this option to disable printing of the key name when printing values\n" \ 3325 " -w Use this option when you want to change a sysctl setting\n" \ 3326 " -p Load in sysctl settings from the file specified or /etc/sysctl.conf if none given\n" \ 3327 " -a Display all values currently available\n" \ 3328 " -A Display all values currently available in table form" 3329#define sysctl_example_usage \ 3330 "sysctl [-n] variable ...\n" \ 3331 "sysctl [-n] -w variable=value ...\n" \ 3332 "sysctl [-n] -a\n" \ 3333 "sysctl [-n] -p file (default /etc/sysctl.conf)\n" \ 3334 "sysctl [-n] -A\n" 3335 3336#define syslogd_trivial_usage \ 3337 "[OPTION]..." 3338#define syslogd_full_usage \ 3339 "System logging utility.\n" \ 3340 "Note that this version of syslogd ignores /etc/syslog.conf." \ 3341 "\n\nOptions:" \ 3342 "\n -n Run as foreground process" \ 3343 "\n -O FILE Log to given file (default=/var/log/messages)" \ 3344 "\n -l n Set local log level" \ 3345 "\n -S Smaller logging output" \ 3346 USE_FEATURE_ROTATE_LOGFILE( \ 3347 "\n -s SIZE Max size (KB) before rotate (default=200KB, 0=off)" \ 3348 "\n -b NUM Number of rotated logs to keep (default=1, max=99, 0=purge)") \ 3349 USE_FEATURE_REMOTE_LOG( \ 3350 "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)" \ 3351 "\n -L Log locally and via network (default is network only if -R)") \ 3352 USE_FEATURE_IPC_SYSLOG( \ 3353 "\n -C[size(KiB)] Log to shared mem buffer (read it using logread)") 3354 /* NB: -Csize shouldn't have space (because size is optional) */ 3355/* "\n -m MIN Minutes between MARK lines (default=20, 0=off)" */ 3356#define syslogd_example_usage \ 3357 "$ syslogd -R masterlog:514\n" \ 3358 "$ syslogd -R 192.168.1.1:601\n" 3359 3360#define tail_trivial_usage \ 3361 "[OPTION]... [FILE]..." 3362#define tail_full_usage \ 3363 "Print last 10 lines of each FILE to standard output.\n" \ 3364 "With more than one FILE, precede each with a header giving the\n" \ 3365 "file name. With no FILE, or when FILE is -, read standard input." \ 3366 "\n\nOptions:" \ 3367 USE_FEATURE_FANCY_TAIL( \ 3368 "\n -c N[kbm] Output the last N bytes") \ 3369 "\n -n N[kbm] Print last N lines instead of last 10" \ 3370 "\n -f Output data as the file grows" \ 3371 USE_FEATURE_FANCY_TAIL( \ 3372 "\n -q Never output headers giving file names" \ 3373 "\n -s SEC Wait SEC seconds between reads with -f" \ 3374 "\n -v Always output headers giving file names" \ 3375 "\n\n" \ 3376 "If the first character of N (bytes or lines) is a '+', output begins with\n" \ 3377 "the Nth item from the start of each file, otherwise, print the last N items\n" \ 3378 "in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2)." ) 3379#define tail_example_usage \ 3380 "$ tail -n 1 /etc/resolv.conf\n" \ 3381 "nameserver 10.0.0.1\n" 3382 3383#define tar_trivial_usage \ 3384 "-[" USE_FEATURE_TAR_CREATE("c") USE_FEATURE_TAR_GZIP("z") \ 3385 USE_FEATURE_TAR_BZIP2("j") USE_FEATURE_TAR_LZMA("a") \ 3386 USE_FEATURE_TAR_COMPRESS("Z") "xtvO] " \ 3387 USE_FEATURE_TAR_FROM("[-X FILE] ") \ 3388 "[-f TARFILE] [-C DIR] [FILE(s)] ..." 3389#define tar_full_usage \ 3390 "Create, extract, or list files from a tar file" \ 3391 "\n\nOptions:\n" \ 3392 USE_FEATURE_TAR_CREATE( \ 3393 " c Create\n") \ 3394 " x Extract\n" \ 3395 " t List\n" \ 3396 "\nArchive format selection:\n" \ 3397 USE_FEATURE_TAR_GZIP( \ 3398 " z Filter the archive through gzip\n") \ 3399 USE_FEATURE_TAR_BZIP2( \ 3400 " j Filter the archive through bzip2\n") \ 3401 USE_FEATURE_TAR_LZMA( \ 3402 " a Filter the archive through lzma\n") \ 3403 USE_FEATURE_TAR_COMPRESS( \ 3404 " Z Filter the archive through compress\n") \ 3405 "\nFile selection:\n" \ 3406 " f Name of TARFILE or \"-\" for stdin\n" \ 3407 " O Extract to stdout\n" \ 3408 USE_FEATURE_TAR_FROM( \ 3409 " exclude File to exclude\n" \ 3410 " X File with names to exclude\n") \ 3411 " C Change to directory DIR before operation\n" \ 3412 " v Verbose" 3413#define tar_example_usage \ 3414 "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" \ 3415 "$ tar -cf /tmp/tarball.tar /usr/local\n" 3416 3417#define taskset_trivial_usage \ 3418 "[OPTIONS] [mask] [pid | command [arg]...]" 3419#define taskset_full_usage \ 3420 "Set or get CPU affinity" \ 3421 "\n\nOptions:\n" \ 3422 " -p Operate on an existing PID" 3423#define taskset_example_usage \ 3424 "$ taskset 0x7 ./dgemm_test&\n" \ 3425 "$ taskset -p 0x1 $!\n" \ 3426 "pid 4790's current affinity mask: 7\n" \ 3427 "pid 4790's new affinity mask: 1\n" \ 3428 "$ taskset 0x7 /bin/sh -c './taskset -p 0x1 $$'\n" \ 3429 "pid 6671's current affinity mask: 1\n" \ 3430 "pid 6671's new affinity mask: 1\n" \ 3431 "$ taskset -p 1\n" \ 3432 "pid 1's current affinity mask: 3\n" 3433 3434#define tee_trivial_usage \ 3435 "[OPTION]... [FILE]..." 3436#define tee_full_usage \ 3437 "Copy standard input to each FILE, and also to standard output" \ 3438 "\n\nOptions:\n" \ 3439 " -a Append to the given FILEs, do not overwrite\n" \ 3440 " -i Ignore interrupt signals (SIGINT)" 3441#define tee_example_usage \ 3442 "$ echo \"Hello\" | tee /tmp/foo\n" \ 3443 "$ cat /tmp/foo\n" \ 3444 "Hello\n" 3445 3446#if ENABLE_FEATURE_TELNET_AUTOLOGIN 3447#define telnet_trivial_usage \ 3448 "[-a] [-l USER] HOST [PORT]" 3449#define telnet_full_usage \ 3450 "Connect to remote telnet server" \ 3451 "\n\nOptions:\n" \ 3452 " -a Attempt an automatic login with the USER variable\n" \ 3453 " -l USER Attempt an automatic login with the USER argument\n" \ 3454 " HOST The official name, alias or the IP address of the\n" \ 3455 " remote host\n" \ 3456 " PORT The remote port number to connect to. If it is not\n" \ 3457 " specified, the default telnet (23) port is used." 3458#else 3459#define telnet_trivial_usage \ 3460 "HOST [PORT]" 3461#define telnet_full_usage \ 3462 "Connect to remote telnet server" 3463#endif 3464 3465#define telnetd_trivial_usage \ 3466 "[OPTION]" 3467#define telnetd_full_usage \ 3468 "Handle incoming telnet connections" \ 3469 SKIP_FEATURE_TELNETD_STANDALONE(" via inetd") \ 3470 "\n\nOptions:" \ 3471 "\n -l LOGIN Exec LOGIN on connect" \ 3472 "\n -f issue_file Display issue_file instead of /etc/issue" \ 3473 USE_FEATURE_TELNETD_STANDALONE( \ 3474 "\n -p PORT Port to listen to" \ 3475 "\n -b ADDR Address to bind to" \ 3476 "\n -F Stay in foreground" \ 3477 "\n -i Run as inetd subservice" \ 3478 ) 3479 3480#define test_trivial_usage \ 3481 "EXPRESSION\n or [ EXPRESSION ]" 3482#define test_full_usage \ 3483 "Check file types and compares values returning an exit code\n" \ 3484 "determined by the value of EXPRESSION" 3485#define test_example_usage \ 3486 "$ test 1 -eq 2\n" \ 3487 "$ echo $?\n" \ 3488 "1\n" \ 3489 "$ test 1 -eq 1\n" \ 3490 "$ echo $?\n" \ 3491 "0\n" \ 3492 "$ [ -d /etc ]\n" \ 3493 "$ echo $?\n" \ 3494 "0\n" \ 3495 "$ [ -d /junk ]\n" \ 3496 "$ echo $?\n" \ 3497 "1\n" 3498 3499#define tcpsvd_trivial_usage \ 3500 "[-hEv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] ip port prog..." 3501/* with not-implemented options: */ 3502/* "[-hpEvv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] [-i dir|-x cdb] [-t sec] ip port prog..." */ 3503#define tcpsvd_full_usage \ 3504 "Creates TCP socket, binds it to ip:port and listens on it\n" \ 3505 "for incoming connections. For each connection it runs prog." \ 3506 "\n" \ 3507 "\nip IP to listen on. '0' = all" \ 3508 "\nport Port to listen on" \ 3509 "\nprog [arg] Program to run" \ 3510 "\n-l name Local hostname (else looks up local hostname in DNS)" \ 3511 "\n-u user[:group] Change to user/group after bind" \ 3512 "\n-c n Handle up to n connections simultaneously" \ 3513 "\n-b n Allow a backlog of approximately n TCP SYNs" \ 3514 "\n-C n[:msg] Allow only up to n connections from the same IP" \ 3515 "\n New connections from this IP address are closed" \ 3516 "\n immediately. 'msg' is written to the peer before close" \ 3517 "\n-h Look up peer's hostname" \ 3518 "\n-E Do not set up environment variables" \ 3519 "\n-v Verbose" 3520 3521#define udpsvd_trivial_usage \ 3522 "[-hEv] [-c n] [-u user] [-l name] ip port prog" 3523#define udpsvd_full_usage \ 3524 "Creates UDP socket, binds it to ip:port and listens on it\n" \ 3525 "for incoming packets. For each packet it runs prog\n" \ 3526 "(redirecting all further packets with same peer ip:port to it)." \ 3527 "\n" \ 3528 "\nip IP to listen on. '0' = all" \ 3529 "\nport Port to listen on" \ 3530 "\nprog [arg] Program to run" \ 3531 "\n-l name Local hostname (else looks up local hostname in DNS)" \ 3532 "\n-u user[:group] Change to user/group after bind" \ 3533 "\n-c n Handle up to n connections simultaneously" \ 3534 "\n-h Look up peer's hostname" \ 3535 "\n-E Do not set up environment variables" \ 3536 "\n-v Verbose" 3537 3538#define tftp_trivial_usage \ 3539 "[OPTION]... HOST [PORT]" 3540#define tftp_full_usage \ 3541 "Transfer a file from/to tftp server using \"octet\" mode" \ 3542 "\n\nOptions:" \ 3543 "\n -l FILE Local FILE" \ 3544 "\n -r FILE Remote FILE" \ 3545 USE_FEATURE_TFTP_GET( \ 3546 "\n -g Get file" \ 3547 ) \ 3548 USE_FEATURE_TFTP_PUT( \ 3549 "\n -p Put file" \ 3550 ) \ 3551 USE_FEATURE_TFTP_BLOCKSIZE( \ 3552 "\n -b SIZE Transfer blocks of SIZE octets" \ 3553 ) 3554#define time_trivial_usage \ 3555 "[OPTION]... COMMAND [ARGS...]" 3556#define time_full_usage \ 3557 "Run the program COMMAND with arguments ARGS. When COMMAND finishes,\n" \ 3558 "COMMAND's resource usage information is displayed." \ 3559 "\n\nOptions:\n" \ 3560 " -v Verbose" 3561 3562#define top_trivial_usage \ 3563 "[-b] [-n count] [-d seconds]" 3564#define top_full_usage \ 3565 "Provide a view of process activity in real time.\n" \ 3566 "Read the status of all processes from /proc each <seconds>\n" \ 3567 "and show the status for however many processes will fit on the screen." 3568 3569#define touch_trivial_usage \ 3570 "[-c] FILE [FILE ...]" 3571#define touch_full_usage \ 3572 "Update the last-modified date on the given FILE[s]" \ 3573 "\n\nOptions:\n" \ 3574 " -c Do not create any files" 3575#define touch_example_usage \ 3576 "$ ls -l /tmp/foo\n" \ 3577 "/bin/ls: /tmp/foo: No such file or directory\n" \ 3578 "$ touch /tmp/foo\n" \ 3579 "$ ls -l /tmp/foo\n" \ 3580 "-rw-rw-r-- 1 andersen andersen 0 Apr 15 01:11 /tmp/foo\n" 3581 3582#define tr_trivial_usage \ 3583 "[-cds] STRING1 [STRING2]" 3584#define tr_full_usage \ 3585 "Translate, squeeze, and/or delete characters from\n" \ 3586 "standard input, writing to standard output" \ 3587 "\n\nOptions:\n" \ 3588 " -c Take complement of STRING1\n" \ 3589 " -d Delete input characters coded STRING1\n" \ 3590 " -s Squeeze multiple output characters of STRING2 into one character" 3591#define tr_example_usage \ 3592 "$ echo \"gdkkn vnqkc\" | tr [a-y] [b-z]\n" \ 3593 "hello world\n" 3594 3595#define traceroute_trivial_usage \ 3596 "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \ 3597 " [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \ 3598 " [-z pausemsecs] host [data size]" 3599#define traceroute_full_usage \ 3600 "Trace the route ip packets follow going to \"host\"" \ 3601 "\n\nOptions:\n" \ 3602 " -F Set the don't fragment bit\n" \ 3603 " -I Use ICMP ECHO instead of UDP datagrams\n" \ 3604 " -l Display the ttl value of the returned packet\n" \ 3605 " -d Set SO_DEBUG options to socket\n" \ 3606 " -n Print hop addresses numerically rather than symbolically\n" \ 3607 " -r Bypass the normal routing tables and send directly to a host\n" \ 3608 " -v Verbose\n" \ 3609 " -m max_ttl Max time-to-live (max number of hops)\n" \ 3610 " -p port# Base UDP port number used in probes\n" \ 3611 " (default is 33434)\n" \ 3612 " -q nqueries Number of probes per 'ttl' (default 3)\n" \ 3613 " -s src_addr IP address to use as the source address\n" \ 3614 " -t tos Type-of-service in probe packets (default 0)\n" \ 3615 " -w wait Time in seconds to wait for a response to a probe\n" \ 3616 " (default 3 sec)\n" \ 3617 " -g Specify a loose source route gateway (8 max)" 3618 3619 3620#define true_trivial_usage \ 3621 "" 3622#define true_full_usage \ 3623 "Return an exit code of TRUE (0)" 3624#define true_example_usage \ 3625 "$ true\n" \ 3626 "$ echo $?\n" \ 3627 "0\n" 3628 3629#define tty_trivial_usage \ 3630 "" 3631#define tty_full_usage \ 3632 "Print file name of standard input's terminal" \ 3633 USE_INCLUDE_SUSv2( \ 3634 "\n\nOptions:\n" \ 3635 " -s Print nothing, only return exit status") 3636#define tty_example_usage \ 3637 "$ tty\n" \ 3638 "/dev/tty2\n" 3639 3640#define ttysize_trivial_usage \ 3641 "[w] [h]" 3642#define ttysize_full_usage \ 3643 "Print dimension(s) of standard input's terminal, on error return 80x25" 3644 3645#define tune2fs_trivial_usage \ 3646 "[-c max-mounts-count] [-e errors-behavior] [-g group] " \ 3647 "[-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] " \ 3648 "[-m reserved-blocks-percent] [-o [^]mount-options[,...]] " \ 3649 "[-r reserved-blocks-count] [-u user] [-C mount-count] " \ 3650 "[-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] " \ 3651 "[-T last-check-time] [-U UUID] device" 3652#define tune2fs_full_usage \ 3653 "Adjust filesystem options on ext[23] filesystems" 3654 3655#define udhcpc_trivial_usage \ 3656 "[-Cfbnqtv] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \ 3657 " [-p pidfile] [-r IP] [-s script]" 3658#define udhcpc_full_usage \ 3659 " -V,--vendorclass=CLASSID Set vendor class identifier" \ 3660 "\n -i,--interface=INTERFACE Interface to use (default: eth0)" \ 3661 "\n -H,-h,--hostname=HOSTNAME Client hostname" \ 3662 "\n -c,--clientid=CLIENTID Set client identifier" \ 3663 "\n -C,--clientid-none Suppress default client identifier" \ 3664 "\n -p,--pidfile=file Store process ID of daemon in file" \ 3665 "\n -r,--request=IP IP address to request" \ 3666 "\n -s,--script=file Run file at dhcp events (default: /usr/share/udhcpc/default.script)" \ 3667 "\n -t,--retries=N Send up to N request packets"\ 3668 "\n -f,--foreground Stay in foreground" \ 3669 "\n -b,--background Background if lease cannot be immediately negotiated" \ 3670 "\n -S,--syslog Log to syslog too" \ 3671 "\n -n,--now Exit with failure if lease cannot be immediately negotiated" \ 3672 "\n -q,--quit Quit after obtaining lease" \ 3673 "\n -R,--release Release IP on quit" \ 3674 "\n -v,--version Display version" \ 3675 3676#define udhcpd_trivial_usage \ 3677 "[-fS] [configfile]" \ 3678 3679#define udhcpd_full_usage \ 3680 "DHCP server" \ 3681 "\n -f Stay in foreground" \ 3682 "\n -S Log to syslog too" 3683 3684#define umount_trivial_usage \ 3685 "[flags] FILESYSTEM|DIRECTORY" 3686#define umount_full_usage \ 3687 "Unmount file systems" \ 3688 "\n\nOptions:\n" \ 3689 USE_FEATURE_UMOUNT_ALL( \ 3690 "\n -a Unmount all file systems" USE_FEATURE_MTAB_SUPPORT(" in /etc/mtab")) \ 3691 USE_FEATURE_MTAB_SUPPORT( \ 3692 "\n -n Don't erase /etc/mtab entries") \ 3693 "\n -r Try to remount devices as read-only if mount is busy" \ 3694 "\n -l Lazy umount (detach filesystem)" \ 3695 "\n -f Force umount (i.e., unreachable NFS server)" \ 3696 USE_FEATURE_MOUNT_LOOP( \ 3697 "\n -D Do not free loop device (if a loop device has been used)") 3698#define umount_example_usage \ 3699 "$ umount /dev/hdc1\n" 3700 3701#define uname_trivial_usage \ 3702 "[OPTION]..." 3703#define uname_full_usage \ 3704 "Print certain system information. With no OPTION, same as -s." \ 3705 "\n\nOptions:\n" \ 3706 " -a Print all information\n" \ 3707 " -m The machine (hardware) type\n" \ 3708 " -n Print the machine's network node hostname\n" \ 3709 " -r Print the operating system release\n" \ 3710 " -s Print the operating system name\n" \ 3711 " -p Print the host processor type\n" \ 3712 " -v Print the operating system version" 3713#define uname_example_usage \ 3714 "$ uname -a\n" \ 3715 "Linux debian 2.4.23 #2 Tue Dec 23 17:09:10 MST 2003 i686 GNU/Linux\n" 3716 3717#define uncompress_trivial_usage \ 3718 "[-c] [-f] [name...]" 3719#define uncompress_full_usage \ 3720 "Uncompress .Z file[s]" \ 3721 "\n\nOptions:\n" \ 3722 " -c Extract to stdout\n" \ 3723 " -f Force overwrite an existing file" 3724 3725#define unexpand_trivial_usage \ 3726 "[-f][-a][-t NUM] [FILE|-]" 3727#define unexpand_full_usage \ 3728 "Convert spaces to tabs, writing to standard output." \ 3729 "\n\nOptions:" \ 3730 "\n -a" USE_FEATURE_UNEXPAND_LONG_OPTIONS(",--all") \ 3731 " Convert all blanks" \ 3732 "\n -f" USE_FEATURE_UNEXPAND_LONG_OPTIONS(",--first-only") \ 3733 " Convert only leading sequences of blanks" \ 3734 "\n -t" USE_FEATURE_UNEXPAND_LONG_OPTIONS(",--tabs=N") \ 3735 " Tabstops every N chars" 3736 3737#define uniq_trivial_usage \ 3738 "[-fscdu]... [INPUT [OUTPUT]]" 3739#define uniq_full_usage \ 3740 "Discard all but one of successive identical lines from INPUT\n" \ 3741 "(or standard input), writing to OUTPUT (or standard output)" \ 3742 "\n\nOptions:\n" \ 3743 " -c Prefix lines by the number of occurrences\n" \ 3744 " -d Only print duplicate lines\n" \ 3745 " -u Only print unique lines\n" \ 3746 " -f N Skip the first N fields\n" \ 3747 " -s N Skip the first N chars (after any skipped fields)" 3748#define uniq_example_usage \ 3749 "$ echo -e \"a\\na\\nb\\nc\\nc\\na\" | sort | uniq\n" \ 3750 "a\n" \ 3751 "b\n" \ 3752 "c\n" 3753 3754#define unix2dos_trivial_usage \ 3755 "[option] [FILE]" 3756#define unix2dos_full_usage \ 3757 "Convert FILE from unix format to dos format. When no option\n" \ 3758 "is given, the input is converted to the opposite output format.\n" \ 3759 "When no file is given, use stdin/stdout." \ 3760 "\n\nOptions:\n" \ 3761 " -u Output will be in UNIX format\n" \ 3762 " -d Output will be in DOS format" 3763 3764#define unzip_trivial_usage \ 3765 "[-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]" 3766#define unzip_full_usage \ 3767 "Extract files from ZIP archives" \ 3768 "\n\nOptions:\n" \ 3769 " -l List archive contents (short form)\n" \ 3770 " -n Never overwrite existing files (default)\n" \ 3771 " -o Overwrite files without prompting\n" \ 3772 " -p Send output to stdout\n" \ 3773 " -q Quiet\n" \ 3774 " -x Exclude these files\n" \ 3775 " -d Extract files into this directory" 3776 3777#define uptime_trivial_usage \ 3778 "" 3779#define uptime_full_usage \ 3780 "Display the time since the last boot" 3781#define uptime_example_usage \ 3782 "$ uptime\n" \ 3783 " 1:55pm up 2:30, load average: 0.09, 0.04, 0.00\n" 3784 3785#define usleep_trivial_usage \ 3786 "N" 3787#define usleep_full_usage \ 3788 "Pause for N microseconds" 3789#define usleep_example_usage \ 3790 "$ usleep 1000000\n" \ 3791 "[pauses for 1 second]\n" 3792 3793#define uudecode_trivial_usage \ 3794 "[-o outfile] [infile]" 3795#define uudecode_full_usage \ 3796 "Uudecode a file\n" \ 3797 "NB: finds outfile name in uuencoded source unless -o is given" 3798#define uudecode_example_usage \ 3799 "$ uudecode -o busybox busybox.uu\n" \ 3800 "$ ls -l busybox\n" \ 3801 "-rwxr-xr-x 1 ams ams 245264 Jun 7 21:35 busybox\n" 3802 3803#define uuencode_trivial_usage \ 3804 "[-m] [infile] stored_filename" 3805#define uuencode_full_usage \ 3806 "Uuencode a file to stdout" \ 3807 "\n\nOptions:\n" \ 3808 " -m Use base64 encoding per RFC1521" 3809#define uuencode_example_usage \ 3810 "$ uuencode busybox busybox\n" \ 3811 "begin 755 busybox\n" \ 3812 "<encoded file snipped>\n" \ 3813 "$ uudecode busybox busybox > busybox.uu\n" \ 3814 "$\n" 3815 3816#define vconfig_trivial_usage \ 3817 "COMMAND [OPTIONS] ..." 3818#define vconfig_full_usage \ 3819 "Create and remove virtual ethernet devices" \ 3820 "\n\nOptions:\n" \ 3821 " add [interface-name] [vlan_id]\n" \ 3822 " rem [vlan-name]\n" \ 3823 " set_flag [interface-name] [flag-num] [0 | 1]\n" \ 3824 " set_egress_map [vlan-name] [skb_priority] [vlan_qos]\n" \ 3825 " set_ingress_map [vlan-name] [skb_priority] [vlan_qos]\n" \ 3826 " set_name_type [name-type]" 3827 3828#define vi_trivial_usage \ 3829 "[OPTION] [FILE]..." 3830#define vi_full_usage \ 3831 "Edit FILE" \ 3832 "\n\nOptions:\n" \ 3833 " -R Read-only - do not write to the file" 3834 3835#define vlock_trivial_usage \ 3836 "[OPTIONS]" 3837#define vlock_full_usage \ 3838 "Lock a virtual terminal. A password is required to unlock." \ 3839 "\n\nOptions:\n" \ 3840 " -a Lock all VTs" 3841 3842#define watch_trivial_usage \ 3843 "[-n seconds] [-t] COMMAND..." 3844#define watch_full_usage \ 3845 "Execute a program periodically" \ 3846 "\n\nOptions:\n" \ 3847 " -n Loop period in seconds - default is 2\n" \ 3848 " -t Don't print header" 3849#define watch_example_usage \ 3850 "$ watch date\n" \ 3851 "Mon Dec 17 10:31:40 GMT 2000\n" \ 3852 "Mon Dec 17 10:31:42 GMT 2000\n" \ 3853 "Mon Dec 17 10:31:44 GMT 2000" 3854 3855#define watchdog_trivial_usage \ 3856 "[-t seconds] [-F] DEV" 3857#define watchdog_full_usage \ 3858 "Periodically write to watchdog device DEV" \ 3859 "\n\nOptions:\n" \ 3860 " -t Timer period in seconds - default is 30\n" \ 3861 " -F Stay in the foreground and don't fork" 3862 3863#define wc_trivial_usage \ 3864 "[OPTION]... [FILE]..." 3865#define wc_full_usage \ 3866 "Print line, word, and byte counts for each FILE, and a total line if\n" \ 3867 "more than one FILE is specified. With no FILE, read standard input." \ 3868 "\n\nOptions:\n" \ 3869 " -c Print the byte counts\n" \ 3870 " -l Print the newline counts\n" \ 3871 " -L Print the length of the longest line\n" \ 3872 " -w Print the word counts" 3873#define wc_example_usage \ 3874 "$ wc /etc/passwd\n" \ 3875 " 31 46 1365 /etc/passwd\n" 3876 3877#define wget_trivial_usage \ 3878 "[-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document file]\n" \ 3879 " [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]\n" \ 3880 " [-U|--user-agent agent] url" 3881#define wget_full_usage \ 3882 "Retrieve files via HTTP or FTP" \ 3883 "\n\nOptions:\n" \ 3884 " -s Spider mode - only check file existence\n" \ 3885 " -c Continue retrieval of aborted transfer\n" \ 3886 " -q Quiet\n" \ 3887 " -P Set directory prefix to DIR\n" \ 3888 " -O Save to filename ('-' for stdout)\n" \ 3889 " -U Adjust 'User-Agent' field\n" \ 3890 " -Y Use proxy ('on' or 'off')" 3891 3892#define which_trivial_usage \ 3893 "[COMMAND ...]" 3894#define which_full_usage \ 3895 "Locate a COMMAND" 3896#define which_example_usage \ 3897 "$ which login\n" \ 3898 "/bin/login\n" 3899 3900#define who_trivial_usage \ 3901 " " 3902#define who_full_usage \ 3903 "Print the current user names and related information" 3904 3905#define whoami_trivial_usage \ 3906 "" 3907#define whoami_full_usage \ 3908 "Print the user name associated with the current effective user id" 3909 3910#define xargs_trivial_usage \ 3911 "[OPTIONS] [COMMAND] [ARGS...]" 3912#define xargs_full_usage \ 3913 "Execute COMMAND on every item given by standard input" \ 3914 "\n\nOptions:\n" \ 3915 USE_FEATURE_XARGS_SUPPORT_CONFIRMATION( \ 3916 " -p Prompt the user about whether to run each command\n") \ 3917 " -r Do not run command for empty read lines\n" \ 3918 USE_FEATURE_XARGS_SUPPORT_TERMOPT( \ 3919 " -x Exit if the size is exceeded\n") \ 3920 USE_FEATURE_XARGS_SUPPORT_ZERO_TERM( \ 3921 " -0 Input filenames are terminated by a null character\n") \ 3922 " -t Print the command line on stderr before executing it" 3923#define xargs_example_usage \ 3924 "$ ls | xargs gzip\n" \ 3925 "$ find . -name '*.c' -print | xargs rm\n" 3926 3927#define yes_trivial_usage \ 3928 "[OPTION]... [STRING]..." 3929#define yes_full_usage \ 3930 "Repeatedly output a line with all specified STRING(s), or 'y'" 3931 3932#define zcat_trivial_usage \ 3933 "FILE" 3934#define zcat_full_usage \ 3935 "Uncompress to stdout" 3936 3937#define zcip_trivial_usage \ 3938 "[OPTIONS] ifname script" 3939#define zcip_full_usage \ 3940 "Manage a ZeroConf IPv4 link-local address" \ 3941 "\n\nOptions:\n" \ 3942 " -f Foreground mode\n" \ 3943 " -q Quit after address (no daemon)\n" \ 3944 " -r 169.254.x.x Request this address first\n" \ 3945 " -v Verbose" 3946 3947#define flash_eraseall_trivial_usage \ 3948 "[-jq] MTD_DEVICE" \ 3949 3950#define flash_eraseall_full_usage "\n\n" \ 3951 "Erase an MTD device\n" \ 3952 "\n -j Format the device for jffs2" \ 3953 "\n -q Don't display progress messages" \ 3954 3955 3956#endif /* __BB_USAGE_H__ */ 3957