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