blob: c8ca66693da2556bcecdcfb223b30ea1d52ed4dc [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
9 BusyBox <function> [arguments...] # or
10
11 <function> [arguments...] # if symlinked
12
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
20much like their GNU counterparts. BusyBox provides a fairly complete POSIX
21environment for any small or embedded system.
John Beppu5bca0af2001-04-05 19:41:23 +000022
23BusyBox has been written with size-optimization and limited resources in mind.
24It is also extremely modular so you can easily include or exclude commands (or
Eric Andersenfbcf06d2004-03-27 09:40:15 +000025features) at compile time. This makes it easy to customize your embedded
26systems. To create a working system, just add /dev, /etc, and a Linux kernel.
27
28BusyBox is extremely configurable. This allows you to include only the
29components you need, thereby reducing binary size. Run 'make config' or 'make
30menuconfig' for select the functionality that you wish to enable. The run
31'make' to compile BusyBox using your configuration.
32
33After the compile has finished, you should use 'make install' to install
34BusyBox. This will install the '/bin/busybox' binary, and will also create
35symlinks pointing to the '/bin/busybox' binary for each utility that you
36compile into BusyBox. By default, 'make install' will place these symlinks
37into the './_install' directory, unless you have defined 'PREFIX', thereby
38specifying some alternative location (i.e., 'make PREFIX=/tmp/foo install').
39If you wish to install using hardlinks, rather than the default of using
40symlinks, you can use 'make PREFIX=/tmp/foo install-hardlinks' instead.
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
48utility programs (we call them applets) can share code for many common operations.
John Beppu5bca0af2001-04-05 19:41:23 +000049
50You can also invoke BusyBox by issuing the command as an argument on the
51command line. For example, entering
52
Eric Andersenfbcf06d2004-03-27 09:40:15 +000053 /bin/busybox ls
John Beppu5bca0af2001-04-05 19:41:23 +000054
Eric Andersenc7bda1c2004-03-15 08:29:22 +000055will also cause BusyBox to behave as 'ls'.
John Beppu5bca0af2001-04-05 19:41:23 +000056
Eric Andersenfbcf06d2004-03-27 09:40:15 +000057Of course, adding '/bin/busybox' into every command would be painful. So most
58people will invoke BusyBox using links to the BusyBox binary.
59
60For example, entering
61
62 ln -s /bin/busybox ls
63 ./ls
64
65will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled
66into BusyBox). Generally speaking, you should never need to make all these
67links yourself, as the BusyBox build system will do this for you when you run
68the 'make install' command.
69
70If you invoke BusyBox with no arguments, it will provide you with a list of the
71applets that have been compiled into your BusyBox binary.
72
John Beppu5bca0af2001-04-05 19:41:23 +000073=head1 COMMON OPTIONS
74
Eric Andersenfbcf06d2004-03-27 09:40:15 +000075Most BusyBox commands support the B<--help> argument to provide a terse runtime
76description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has
77been enabled, more detailed usage information will also be available.
John Beppu5bca0af2001-04-05 19:41:23 +000078
79=head1 COMMANDS
80
81Currently defined functions include:
82
Eric Andersenb868f552003-12-20 07:16:22 +000083 addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2,
84 busybox, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear,
85 cmp, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup,
86 deluser, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap,
87 dumpleases, dutmp, echo, egrep, env, expr, false, fbset, fdflush,
88 fdformat, fgrep, find, fold, free, freeramdisk, fsck.minix, ftpget,
89 ftpput, getopt, getty, grep, gunzip, gzip, halt, hdparm, head, hexdump,
90 hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifup,
91 inetd, init, insmod, ip, ipcalc, iplink, iproute, iptunnel, kill,
92 killall, klogd, lash, length, linuxrc, ln, loadfont, loadkmap, logger,
93 login, logname, logread, losetup, ls, lsmod, makedevs, md5sum, mesg,
94 minit, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe,
95 more, mount, msh, msvc, mt, mv, nameif, nc, netstat, nslookup, od,
96 openvt, passwd, patch, pidfilehack, pidof, ping, ping6, pivot_root,
97 poweroff, printf, ps, pwd, rdate, readlink, realpath, reboot, renice,
98 reset, rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, sed,
99 setkeycodes, sha1sum, sleep, sort, start-stop-daemon, strings, stty,
100 su, sulogin, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet,
101 telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty,
102 udhcpc, udhcpd, umount, uname, uncompress, uniq, unix2dos, unzip,
103 uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch,
104 watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, [
John Beppu5bca0af2001-04-05 19:41:23 +0000105
Eric Andersenfbcf06d2004-03-27 09:40:15 +0000106=head1 LIBC NSS
107
108GNU Libc (glibc) uses the Name Service Switch (NSS) to configure the behavior
109of the C library for the local environment, and to configure how it reads
110system data, such as passwords and group information. This is implemented
111using an /etc/nsswitch.conf configuration file, and using one or more of the
112/lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make
113use of NSS. Some applets, such as login and su, will use libc functions that
114usually require NSS.
115
116If you enable CONFIG_USE_BB_PWD_GRP, BusyBox will use internal functions to
117directly access the /etc/passwd, /etc/group, and /etc/shadow files without
118using NSS. This may allow you to run your system without the need for
119installing any of the NSS configuration files and libraries.
120
121When used with glibc, the BusyBox 'networking' applets will similarly require
122that you install at least some of the glibc NSS stuff (in particular,
123/etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).
124
125Shameless Plug: As an alternative one could use a C library such as uClibc. In
126addition to making your system significantly smaller, uClibc does not need or
127use any NSS support files or libraries.
Matt Kraai91631012001-08-27 18:55:10 +0000128
Eric Andersen38748fd2004-03-27 11:35:46 +0000129=over 4
130
131