3
0

busybox_header.pod 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # vi: set sw=4 ts=4:
  2. =head1 NAME
  3. BusyBox - The Swiss Army Knife of Embedded Linux
  4. =head1 SYNTAX
  5. BusyBox <function> [arguments...] # or
  6. <function> [arguments...] # if symlinked
  7. =head1 DESCRIPTION
  8. BusyBox combines tiny versions of many common UNIX utilities into a single
  9. small executable. It provides minimalist replacements for most of the utilities
  10. you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox
  11. generally have fewer options than their full-featured GNU cousins; however, the
  12. options that are included provide the expected functionality and behave very
  13. much like their GNU counterparts.
  14. BusyBox has been written with size-optimization and limited resources in mind.
  15. It is also extremely modular so you can easily include or exclude commands (or
  16. features) at compile time. This makes it easy to customize your embedded
  17. systems. To create a working system, just add /dev, /etc, and a Linux kernel.
  18. BusyBox provides a fairly complete POSIX environment for any small or embedded
  19. system.
  20. BusyBox is extremely configurable. This allows you to include only the
  21. components you need, thereby reducing binary size. Run 'make config' or 'make
  22. menuconfig' to select the functionality that you wish to enable. The run
  23. 'make' to compile BusyBox using your configuration.
  24. After the compile has finished, you should use 'make install' to install
  25. BusyBox. This will install the '/bin/busybox' binary, and will also create
  26. symlinks pointing to the '/bin/busybox' binary for each utility that you
  27. compile into BusyBox. By default, 'make install' will place these symlinks
  28. into the './_install' directory, unless you have defined 'PREFIX', thereby
  29. specifying some alternative location (i.e., 'make PREFIX=/tmp/foo install').
  30. If you wish to install using hardlinks, rather than the default of using
  31. symlinks, you can use 'make PREFIX=/tmp/foo install-hardlinks' instead.
  32. =head1 USAGE
  33. BusyBox is a multi-call binary. A multi-call binary is an executable program
  34. that performs the same job as more than one utility program. That means there
  35. is just a single BusyBox binary, but that single binary acts like a large
  36. number of utilities. This allows BusyBox to be smaller since all the built-in
  37. utility programs (we call them applets) can share code for many common operations.
  38. You can also invoke BusyBox by issuing a command as an argument on the
  39. command line. For example, entering
  40. /bin/busybox ls
  41. will also cause BusyBox to behave as 'ls'.
  42. Of course, adding '/bin/busybox' into every command would be painful. So most
  43. people will invoke BusyBox using links to the BusyBox binary.
  44. For example, entering
  45. ln -s /bin/busybox ls
  46. ./ls
  47. will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
  48. into BusyBox). Generally speaking, you should never need to make all these
  49. links yourself, as the BusyBox build system will do this for you when you run
  50. the 'make install' command.
  51. If you invoke BusyBox with no arguments, it will provide you with a list of the
  52. applets that have been compiled into your BusyBox binary.
  53. =head1 COMMON OPTIONS
  54. Most BusyBox commands support the B<--help> argument to provide a terse runtime
  55. description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has
  56. been enabled, more detailed usage information will also be available.
  57. =head1 COMMANDS
  58. Currently defined functions include:
  59. addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2,
  60. busybox, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp,
  61. cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser,
  62. devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap,
  63. dumpleases, echo, egrep, env, expr, false, fbset, fdflush, fdformat, fdisk,
  64. fgrep, find, fold, free, freeramdisk, fsck.minix, ftpget, ftpput, getopt,
  65. getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname,
  66. httpd, hush, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
  67. install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iptunnel, kill,
  68. killall, klogd, lash, last, length, linuxrc, ln, loadfont, loadkmap,
  69. logger, login, logname, logread, losetup, ls, lsmod, makedevs, md5sum,
  70. mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more,
  71. mount, msh, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd,
  72. patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printf, ps,
  73. pwd, rdate, readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod,
  74. route, rpm, rpm2cpio, run-parts, rx, sed, seq, setkeycodes, sha1sum, sleep,
  75. sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon, sync,
  76. sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
  77. touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname,
  78. uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode,
  79. vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs,
  80. yes, zcat
  81. =head1 COMMAND DESCRIPTIONS
  82. =over 4