NAME
BusyBox - The Swiss Army Knife of Embedded Linux
SYNTAX
BusyBox <function> [arguments...] # or
<function> [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 fileutils, shellutils, findutils,
textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete
POSIX environment for any small or embedded system. 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 a kernel, a
shell (such as ash), and an editor (such as elvis-tiny or ae).
USAGE
When you create a link to BusyBox for the function you wish to use, when
BusyBox is called using that link it will behave as if the command
itself has been invoked.
For example, entering
ln -s ./BusyBox ls
./ls
will cause BusyBox to behave as 'ls' (if the 'ls' command has been
compiled into BusyBox).
You can also invoke BusyBox by issuing the command as an argument on the
command line. For example, entering
./BusyBox ls
will also cause BusyBox to behave as 'ls'.
COMMON OPTIONS
Most BusyBox commands support the -h option to provide a terse runtime
description of their behavior.
COMMANDS
Currently defined functions include:
adjtimex, ar, basename, busybox, cat, chgrp, chmod, chown, chroot, chvt,
clear, cmp, cp, cpio, cut, date, dc, dd, deallocvt, df, dirname, dmesg,
dos2unix, dpkg, dpkg-deb, du, dumpkmap, dutmp, echo, expr, false, fbset,
fdflush, find, free, freeramdisk, fsck.minix, getopt, grep, gunzip,
gzip, halt, head, hostid, hostname, id, ifconfig, init, insmod, kill,
killall, klogd, length, ln, loadacm, loadfont, loadkmap, logger,
logname, ls, lsmod, makedevs, md5sum, mkdir, mkfifo, mkfs.minix, mknod,
mkswap, mktemp, more, mount, mt, mv, nc, nslookup, ping, pivot_root,
poweroff, printf, ps, pwd, rdate, readlink, reboot, renice, reset, rm,
rmdir, rmmod, route, rpm2cpio, sed, setkeycodes, sh, sleep, sort, stty,
swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, test, tftp,
touch, tr, true, tty, umount, uname, uniq, unix2dos, update, uptime,
usleep, uudecode, uuencode, watchdog, wc, wget, which, whoami, xargs,
yes, zcat, [
adjtimex
adjtimex [-q] [-o offset] [-f frequency] [-p timeconstant] [-t tick]
Reads and optionally sets system timebase parameters. See
adjtimex(2).
Options:
-q quiet mode - do not print
-o offset time offset, microseconds
-f frequency frequency adjust, integer kernel units (65536 is 1ppm)
(positive values make the system clock run fast)
-t tick microseconds per tick, usually 10000
-p timeconstant
-------------------------------
ar ar -[ov][ptx] ARCHIVE FILES
Extract or list FILES from an ar archive.
Options:
-o preserve original dates
-p extract to stdout
-t list
-x extract
-v verbosely list files processed
-------------------------------
basename
basename FILE [SUFFIX]
Strips directory path and suffixes from FILE. If specified, also
removes any trailing SUFFIX.
Example:
$ basename /usr/local/bin/foo
foo
$ basename /usr/local/bin/
bin
$ basename /foo/bar.txt .txt
bar
-------------------------------
cat cat [FILE]...
Concatenates FILE(s) and prints them to stdout.
Example:
$ cat /proc/uptime
110716.72 17.67
-------------------------------
chgrp
chgrp [OPTION]... GROUP FILE...
Change the group membership of each FILE to GROUP.
Options:
-R Changes files and directories recursively.
Example:
$ ls -l /tmp/foo
-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
$ chgrp root /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo
-------------------------------
chmod
chmod [-R] MODE[,MODE]... FILE...
Each MODE is one or more of the letters ugoa, one of the symbols +-=
and one or more of the letters rwxst.
Options:
-R Changes files and directories recursively.
Example:
$ ls -l /tmp/foo
-rw-rw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo
$ chmod u+x /tmp/foo
$ ls -l /tmp/foo
-rwxrw-r-- 1 root root 0 Apr 12 18:25 /tmp/foo*
$ chmod 444 /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
-------------------------------
chown
chown [ -Rh ]... OWNER[<.|:>[GROUP]] FILE...
Change the owner and/or group of each FILE to OWNER and/or GROUP.
Options:
-R Changes files and directories recursively.
-h Do not dereference symbolic links.
Example:
$ ls -l /tmp/foo
-r--r--r-- 1 andersen andersen 0 Apr 12 18:25 /tmp/foo
$ chown root /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 root andersen 0 Apr 12 18:25 /tmp/foo
$ chown root.root /tmp/foo
ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
-------------------------------
chroot
chroot NEWROOT [COMMAND...]
Run COMMAND with root directory set to NEWROOT.
Example:
$ ls -l /bin/ls
lrwxrwxrwx 1 root root 12 Apr 13 00:46 /bin/ls -> /BusyBox
$ mount /dev/hdc1 /mnt -t minix
$ chroot /mnt
$ ls -l /bin/ls
-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*
-------------------------------
chvt
chvt N
Changes the foreground virtual terminal to /dev/ttyN
-------------------------------
clear
clear
Clear screen.
-------------------------------
cmp cmp FILE1 [FILE2]
-s quiet mode - do not print
Compare files.
-------------------------------
cp cp [OPTION]... SOURCE DEST
Copies SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
-a Same as -dpR
-d Preserves links
-p Preserves file attributes if possible
-f force (implied; ignored) - always set
-R Copies directories recursively
-------------------------------
cpio
cpio -[dimtuv][F cpiofile]
Extract or list files from a cpio archive Main operation mode:
d make leading directories
i extract
m preserve m
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
busybox-linux-e680.rar_E680_android e680 patch_busybox_busybox E (297个子文件)
BusyBox.1 83KB
devps.patch.9_25_2000 41KB
AUTHORS 3KB
ash.c 259KB
vi.c 112KB
insmod.c 88KB
msh.c 85KB
hush.c 80KB
gzip.c 79KB
interface.c 49KB
dpkg.c 44KB
lash.c 40KB
stty.c 38KB
fsck_minix.c 36KB
cmdedit.c 34KB
tar.c 33KB
md5sum.c 30KB
unzip.c 30KB
init.c 29KB
ls.c 26KB
nfsmount.c 25KB
sed.c 24KB
mkfs_minix.c 21KB
wget.c 21KB
unarchive.c 19KB
top.c 18KB
traceroute.c 17KB
syslogd.c 17KB
time.c 15KB
ping.c 15KB
getopt.c 14KB
telnet.c 14KB
ifconfig.c 13KB
mount.c 13KB
fbset.c 13KB
tftp.c 13KB
arith.c 12KB
uudecode.c 11KB
mkswap.c 11KB
route.c 11KB
test.c 10KB
expr.c 10KB
printf.c 10KB
grep.c 10KB
cut.c 9KB
ps.c 9KB
loadacm.c 8KB
modprobe.c 7KB
umount.c 7KB
tr.c 7KB
copy_file.c 7KB
tail.c 6KB
date.c 6KB
gunzip.c 6KB
u_signal_names.c 6KB
logger.c 6KB
more.c 6KB
find.c 5KB
libc5.c 5KB
lsmod.c 5KB
uuencode.c 5KB
dos2unix.c 5KB
loadfont.c 5KB
adjtimex.c 5KB
find_pid_by_name.c 4KB
__getgrent.c 4KB
echo.c 4KB
nslookup.c 4KB
dd.c 4KB
df.c 4KB
nc.c 4KB
du.c 4KB
klogd.c 4KB
uname.c 4KB
mv.c 4KB
busybox.c 4KB
dpkg_deb.c 4KB
wc.c 4KB
recursive_action.c 4KB
env.c 4KB
logread.c 3KB
kill.c 3KB
syscalls.c 3KB
xargs.c 3KB
__getpwent.c 3KB
applets.c 3KB
mtab.c 3KB
read_package_field.c 3KB
parse_mode.c 3KB
cp.c 3KB
ln.c 3KB
dc.c 3KB
rdate.c 3KB
hostname.c 3KB
rpm2cpio.c 3KB
remove_file.c 3KB
reboot.c 3KB
module_syscalls.c 3KB
loop.c 3KB
chown.c 3KB
共 297 条
- 1
- 2
- 3
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0