没有合适的资源?快使用搜索试试~ 我知道了~
详细介绍BusyBox命令的文档,教你熟悉BusyBox各种命令组件的使用
资源推荐
资源详情
资源评论
BusyBox - The Swiss Army Knife of Embedded Linux
NAME
BusyBox - The Swiss Army Knife of Embedded Linux
SYNTAX
busybox <applet> [arguments...] # or
<applet> [arguments...] # if symlinked
DESCRIPTION
BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It
provides minimalist replacements for most of the utilities 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 much like their GNU counterparts.
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 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. BusyBox provides
a fairly complete POSIX environment for any small or embedded system.
BusyBox is extremely configurable. This allows you to include only the components you need, thereby
reducing binary size. Run 'make config' or 'make menuconfig' to select the functionality that you wish to
enable. Then run 'make' to compile BusyBox using your configuration.
After the compile has finished, you should use 'make install' to install BusyBox. This will install the 'bin/
busybox' binary, in the target directory specified by CONFIG_PREFIX. CONFIG_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 CONFIG_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 CONFIG_PREFIX.
USAGE
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.
You can also invoke BusyBox by issuing a command as an argument on the command line. For example, entering
/bin/busybox ls
http://www.busybox.net/downloads/BusyBox.html(第 1/78 页)[2010-8-17 11:46:39]
BusyBox - The Swiss Army Knife of Embedded Linux
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.
For example, entering
ln -s /bin/busybox ls
./ls
will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled 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.
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.
COMMON OPTIONS
Most BusyBox applets support the --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.
COMMANDS
Currently available applets include:
[, [[, acpid, addgroup, adduser, adjtimex, ar, arp, arping, ash,
awk, basename, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat,
catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot,
chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab,
cryptpw, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
dos2unix, dpkg, du, dumpkmap, dumpleases, echo, ed, egrep, eject,
env, envdir, envuidgid, expand, expr, fakeidentd, false, fbset,
fbsplash, fdflush, fdformat, fdisk, fgrep, find, findfs, flash_lock,
flash_unlock, fold, free, freeramdisk, fsck, fsck.minix, fsync,
ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, hd,
hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id,
ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd,
insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink,
iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
last, length, less, linux32, linux64, linuxrc, ln, loadfont,
loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr,
ls, lsattr, lsmod, lzmacat, lzop, lzopcat, makemime, man, md5sum,
mdev, mesg, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat,
mknod, mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint,
mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od,
http://www.busybox.net/downloads/BusyBox.html(第 2/78 页)[2010-8-17 11:46:40]
BusyBox - The Swiss Army Knife of Embedded Linux
openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
pivot_root, pkill, popmaildir, printenv, printf, ps, pscan, pwd,
raidautorun, rdate, rdev, readlink, readprofile, realpath,
reformime, renice, reset, resize, rm, rmdir, rmmod, route, rpm,
rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum,
sha512sum, showkey, slattach, sleep, softlimit, sort, split,
start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv,
svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd,
time, timeout, top, touch, tr, traceroute, true, tty, ttysize,
udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq,
unix2dos, unlzma, unlzop, unzip, uptime, usleep, uudecode, uuencode,
vconfig, vi, vlock, volname, watch, watchdog, wc, wget, which, who,
whoami, xargs, yes, zcat, zcip
COMMAND DESCRIPTIONS
acpid
acpid [-d] [-c CONFDIR] [-l LOGFILE] [-e PROC_EVENT_FILE] [EVDEV_EVENT_FILE...]
Listen to ACPI events and spawn specific helpers on event arrival
Options:
-d Do not daemonize and log to stderr
-c DIR Config directory [/etc/acpi]
-e FILE /proc event file [/proc/acpi/event]
-l FILE Log file [/var/log/acpid]
Accept and ignore compatibility options -g -m -s -S -v
addgroup
addgroup [-g GID] [user_name] group_name
Add a group or add a user to a group
Options:
-g GID Group id
-S Create a system group
adduser
adduser [OPTIONS] user_name
Add a user
http://www.busybox.net/downloads/BusyBox.html(第 3/78 页)[2010-8-17 11:46:40]
BusyBox - The Swiss Army Knife of Embedded Linux
Options:
-h DIR Home directory
-g GECOS GECOS field
-s SHELL Login shell
-G GRP Add user to existing group
-S Create a system user
-D Do not assign a password
-H Do not create home directory
-u UID User id
adjtimex
adjtimex [-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]
Read and optionally set system timebase parameters. See
adjtimex(2).
Options:
-q Quiet
-o offset Time offset, microseconds
-f frequency Frequency adjust, integer kernel units (65536 is 1ppm)
(positive values make clock run faster)
-t tick Microseconds per tick, usually 10000
-p timeconstant
ar
ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES
Extract or list FILES from an ar archive
Options:
-o Preserve original dates
-p Extract to stdout
-t List
-x Extract
-v Verbose
arp
arp
[-
vn]
[-H type] [-i if] -a [hostname]
[-v] [-i if] -d hostname [pub]
[-v] [-H type] [-i if] -s hostname hw_addr [temp]
[-v]
[-H type] [-i if] -s hostname hw_addr [netmask nm]
pub
[-v] [-H type] [-i if] -Ds hostname ifa [netmask nm] pub
Manipulate ARP cache
http://www.busybox.net/downloads/BusyBox.html(第 4/78 页)[2010-8-17 11:46:40]
BusyBox - The Swiss Army Knife of Embedded Linux
Options:
-a Display (all) hosts
-s Set new ARP entry
-d Delete a specified entry
-v Verbose
-n Don't resolve names
-i IF Network interface
-D Read <hwaddr> from given device
-A, -p AF Protocol family
-H HWTYPE Hardware address type
arping
arping [-fqbDUA] [-c count] [-w timeout] [-I dev] [-s sender] target
Send ARP requests/replies
Options:
-f Quit on first ARP reply
-q Quiet
-b Keep broadcasting, don't go unicast
-D Duplicated address detection mode
-U Unsolicited ARP mode, update your neighbors
-A ARP answer mode, update your neighbors
-c N Stop after sending N ARP requests
-w timeout Time to wait for ARP reply, in seconds
-I dev Interface to use (default eth0)
-s sender Sender IP address
target Target IP address
awk
awk [OPTIONS] [AWK_PROGRAM] [FILE]...
Options:
-v VAR=VAL Set variable
-F SEP Use SEP as field separator
-f FILE Read program from file
basename
basename FILE [SUFFIX]
Strip directory path and .SUFFIX from FILE
beep
beep -f freq -l length -d delay -r repetitions -n
Options:
http://www.busybox.net/downloads/BusyBox.html(第 5/78 页)[2010-8-17 11:46:41]
剩余77页未读,继续阅读
资源评论
TL_gone
- 粉丝: 89
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功