blob: 85a173e82d2cacd5add41645de05eb9e186b466f [file] [log] [blame]
John Beppu5bca0af2001-04-05 19:41:23 +00001# vi: set sw=4 ts=4:
2
3=head1 NAME
4
5BusyBox - The Swiss Army Knife of Embedded Linux
6
7=head1 SYNTAX
8
Bernhard Reutner-Fischerf0d08112008-08-21 13:22:44 +00009 busybox <applet> [arguments...] # or
John Beppu5bca0af2001-04-05 19:41:23 +000010
Denys Vlasenkoacabf8f2009-10-02 01:10:32 +020011 <applet> [arguments...] # if symlinked
John Beppu5bca0af2001-04-05 19:41:23 +000012
13=head1 DESCRIPTION
14
15BusyBox combines tiny versions of many common UNIX utilities into a single
16small executable. It provides minimalist replacements for most of the utilities
Eric Andersenfbcf06d2004-03-27 09:40:15 +000017you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox
18generally have fewer options than their full-featured GNU cousins; however, the
19options that are included provide the expected functionality and behave very
Eric Andersen69bd0d12004-04-06 15:39:20 +000020much like their GNU counterparts.
John Beppu5bca0af2001-04-05 19:41:23 +000021
22BusyBox has been written with size-optimization and limited resources in mind.
23It is also extremely modular so you can easily include or exclude commands (or
Eric Andersenfbcf06d2004-03-27 09:40:15 +000024features) at compile time. This makes it easy to customize your embedded
25systems. To create a working system, just add /dev, /etc, and a Linux kernel.
Eric Andersen69bd0d12004-04-06 15:39:20 +000026BusyBox provides a fairly complete POSIX environment for any small or embedded
27system.
Eric Andersenfbcf06d2004-03-27 09:40:15 +000028
29BusyBox is extremely configurable. This allows you to include only the
30components you need, thereby reducing binary size. Run 'make config' or 'make
Rob Landleyd4f15e92005-12-02 18:27:39 +000031menuconfig' to select the functionality that you wish to enable. Then run
Eric Andersenfbcf06d2004-03-27 09:40:15 +000032'make' to compile BusyBox using your configuration.
33
34After the compile has finished, you should use 'make install' to install
Rob Landleyd4f15e92005-12-02 18:27:39 +000035BusyBox. This will install the 'bin/busybox' binary, in the target directory
Denis Vlasenkoe8ce0622007-02-03 17:29:14 +000036specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox,
37or you can specify an alternative location at install time (i.e., with a
38command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled
39any applet installation scheme (either as symlinks or hardlinks), these will
40also be installed in the location pointed to by CONFIG_PREFIX.
John Beppu5bca0af2001-04-05 19:41:23 +000041
42=head1 USAGE
43
Eric Andersenfbcf06d2004-03-27 09:40:15 +000044BusyBox is a multi-call binary. A multi-call binary is an executable program
45that performs the same job as more than one utility program. That means there
46is just a single BusyBox binary, but that single binary acts like a large
47number of utilities. This allows BusyBox to be smaller since all the built-in
Bernhard Reutner-Fischerf0d08112008-08-21 13:22:44 +000048utility programs (we call them applets) can share code for many common
49operations.
John Beppu5bca0af2001-04-05 19:41:23 +000050
Eric Andersen69bd0d12004-04-06 15:39:20 +000051You can also invoke BusyBox by issuing a command as an argument on the
John Beppu5bca0af2001-04-05 19:41:23 +000052command line. For example, entering
53
Eric Andersenfbcf06d2004-03-27 09:40:15 +000054 /bin/busybox ls
John Beppu5bca0af2001-04-05 19:41:23 +000055
Eric Andersenc7bda1c2004-03-15 08:29:22 +000056will also cause BusyBox to behave as 'ls'.
John Beppu5bca0af2001-04-05 19:41:23 +000057
Eric Andersenfbcf06d2004-03-27 09:40:15 +000058Of course, adding '/bin/busybox' into every command would be painful. So most
59people will invoke BusyBox using links to the BusyBox binary.
60
61For example, entering
62
63 ln -s /bin/busybox ls
64 ./ls
65
66will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
67into BusyBox). Generally speaking, you should never need to make all these
68links yourself, as the BusyBox build system will do this for you when you run
69the 'make install' command.
70
71If you invoke BusyBox with no arguments, it will provide you with a list of the
72applets that have been compiled into your BusyBox binary.
73
John Beppu5bca0af2001-04-05 19:41:23 +000074=head1 COMMON OPTIONS
75
Bernhard Reutner-Fischerf0d08112008-08-21 13:22:44 +000076Most BusyBox applets support the B<--help> argument to provide a terse runtime
Eric Andersenfbcf06d2004-03-27 09:40:15 +000077description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has
78been enabled, more detailed usage information will also be available.
John Beppu5bca0af2001-04-05 19:41:23 +000079
80=head1 COMMANDS
81
Bernhard Reutner-Fischerf0d08112008-08-21 13:22:44 +000082Currently available applets include: