John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 1 | # vi: set sw=4 ts=4: |
| 2 | |
| 3 | =head1 NAME |
| 4 | |
| 5 | BusyBox - The Swiss Army Knife of Embedded Linux |
| 6 | |
| 7 | =head1 SYNTAX |
| 8 | |
Bernhard Reutner-Fischer | f0d0811 | 2008-08-21 13:22:44 +0000 | [diff] [blame] | 9 | busybox <applet> [arguments...] # or |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 10 | |
Denys Vlasenko | acabf8f | 2009-10-02 01:10:32 +0200 | [diff] [blame] | 11 | <applet> [arguments...] # if symlinked |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 12 | |
| 13 | =head1 DESCRIPTION |
| 14 | |
| 15 | BusyBox combines tiny versions of many common UNIX utilities into a single |
| 16 | small executable. It provides minimalist replacements for most of the utilities |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 17 | you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox |
| 18 | generally have fewer options than their full-featured GNU cousins; however, the |
| 19 | options that are included provide the expected functionality and behave very |
Eric Andersen | 69bd0d1 | 2004-04-06 15:39:20 +0000 | [diff] [blame] | 20 | much like their GNU counterparts. |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 21 | |
| 22 | BusyBox has been written with size-optimization and limited resources in mind. |
| 23 | It is also extremely modular so you can easily include or exclude commands (or |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 24 | features) at compile time. This makes it easy to customize your embedded |
| 25 | systems. To create a working system, just add /dev, /etc, and a Linux kernel. |
Eric Andersen | 69bd0d1 | 2004-04-06 15:39:20 +0000 | [diff] [blame] | 26 | BusyBox provides a fairly complete POSIX environment for any small or embedded |
| 27 | system. |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 28 | |
| 29 | BusyBox is extremely configurable. This allows you to include only the |
| 30 | components you need, thereby reducing binary size. Run 'make config' or 'make |
Rob Landley | d4f15e9 | 2005-12-02 18:27:39 +0000 | [diff] [blame] | 31 | menuconfig' to select the functionality that you wish to enable. Then run |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 32 | 'make' to compile BusyBox using your configuration. |
| 33 | |
| 34 | After the compile has finished, you should use 'make install' to install |
Rob Landley | d4f15e9 | 2005-12-02 18:27:39 +0000 | [diff] [blame] | 35 | BusyBox. This will install the 'bin/busybox' binary, in the target directory |
Denis Vlasenko | e8ce062 | 2007-02-03 17:29:14 +0000 | [diff] [blame] | 36 | specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox, |
| 37 | or you can specify an alternative location at install time (i.e., with a |
| 38 | command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled |
| 39 | any applet installation scheme (either as symlinks or hardlinks), these will |
| 40 | also be installed in the location pointed to by CONFIG_PREFIX. |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 41 | |
| 42 | =head1 USAGE |
| 43 | |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 44 | BusyBox is a multi-call binary. A multi-call binary is an executable program |
| 45 | that performs the same job as more than one utility program. That means there |
| 46 | is just a single BusyBox binary, but that single binary acts like a large |
| 47 | number of utilities. This allows BusyBox to be smaller since all the built-in |
Bernhard Reutner-Fischer | f0d0811 | 2008-08-21 13:22:44 +0000 | [diff] [blame] | 48 | utility programs (we call them applets) can share code for many common |
| 49 | operations. |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 50 | |
Eric Andersen | 69bd0d1 | 2004-04-06 15:39:20 +0000 | [diff] [blame] | 51 | You can also invoke BusyBox by issuing a command as an argument on the |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 52 | command line. For example, entering |
| 53 | |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 54 | /bin/busybox ls |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 55 | |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 56 | will also cause BusyBox to behave as 'ls'. |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 57 | |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 58 | Of course, adding '/bin/busybox' into every command would be painful. So most |
| 59 | people will invoke BusyBox using links to the BusyBox binary. |
| 60 | |
| 61 | For example, entering |
| 62 | |
| 63 | ln -s /bin/busybox ls |
| 64 | ./ls |
| 65 | |
| 66 | will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled |
| 67 | into BusyBox). Generally speaking, you should never need to make all these |
| 68 | links yourself, as the BusyBox build system will do this for you when you run |
| 69 | the 'make install' command. |
| 70 | |
| 71 | If you invoke BusyBox with no arguments, it will provide you with a list of the |
| 72 | applets that have been compiled into your BusyBox binary. |
| 73 | |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 74 | =head1 COMMON OPTIONS |
| 75 | |
Bernhard Reutner-Fischer | f0d0811 | 2008-08-21 13:22:44 +0000 | [diff] [blame] | 76 | Most BusyBox applets support the B<--help> argument to provide a terse runtime |
Eric Andersen | fbcf06d | 2004-03-27 09:40:15 +0000 | [diff] [blame] | 77 | description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has |
| 78 | been enabled, more detailed usage information will also be available. |
John Beppu | 5bca0af | 2001-04-05 19:41:23 +0000 | [diff] [blame] | 79 | |
| 80 | =head1 COMMANDS |
| 81 | |
Bernhard Reutner-Fischer | f0d0811 | 2008-08-21 13:22:44 +0000 | [diff] [blame] | 82 | Currently available applets include: |