blob: 7a5b0f71687de992ccb12e110121dbd381c26012 [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
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
36specified by PREFIX. PREFIX can be set when configuring BusyBox, or you can
37specify an alternative location at install time (i.e., with a command line
38like 'make PREFIX=/tmp/foo install'). If you enabled any applet installation
39scheme (either as symlinks or hardlinks), these will also be installed in
40the location pointed to by 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
48utility programs (we call them applets) can share code for many common operations.
John Beppu5bca0af2001-04-05 19:41:23 +000049
Eric Andersen69bd0d12004-04-06 15:39:20 +000050You can also invoke BusyBox by issuing a command as an argument on the
John Beppu5bca0af2001-04-05 19:41:23 +000051command 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,
Eric Andersen69bd0d12004-04-06 15:39:20 +000084 busybox, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp,
85 cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser,
86 devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap,
87 dumpleases, echo, egrep, env, expr, false, fbset, fdflush, fdformat, fdisk,
88 fgrep, find, fold, free, freeramdisk, fsck.minix, ftpget, ftpput, getopt,
89 getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname,
90 httpd, hush, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
Rob Landley6eb1e412005-06-20 04:30:36 +000091 install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iptunnel, kill,
92 killall, klogd, lash, last, length, linuxrc, ln, loadfont, loadkmap,
93 logger, login, logname, logread, losetup, ls, lsmod, makedevs, md5sum,
94 mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more,
95 mount, msh, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd,
96 patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printf, ps,
97 pwd, rdate, readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod,
98 route, rpm, rpm2cpio, run-parts, rx, sed, seq, setkeycodes, sha1sum, sleep,
99 sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon, sync,
Eric Andersen69bd0d12004-04-06 15:39:20 +0000100 sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
101 touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname,
102 uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode,
103 vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs,
104 yes, zcat
John Beppu5bca0af2001-04-05 19:41:23 +0000105
Eric Andersen3ddff212004-04-13 16:31:41 +0000106=head1 COMMAND DESCRIPTIONS
Matt Kraai91631012001-08-27 18:55:10 +0000107
Eric Andersen38748fd2004-03-27 11:35:46 +0000108=over 4
109
110