Busybox 将很多 UNIX 下的工具集打包到一个可执行文件中,特别适合小容量的嵌入式设备,Android 等等。最近也是因为在 Android 用到才接触到。
实际的命令列表按编译时的设置决定,在有 Busybox 的系统上执行 busybox --list
即可看到一个完整的列表。
127|:/ $ busybox
BusyBox v1.30.1-osm0sis (2019-02-28 18:48:08 AST) multi-call binary.BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --show SCRIPT
or: busybox --install [-s] [DIR]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, acpid, adjtimex, ar, arch, arp, arping, ash, awk,
base64, basename, bbconfig, beep, blkdiscard, blkid,
blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat, chat,
chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum,
clear, cmp, comm, conspy, cp, cpio, crond, crontab,
cttyhack, cut, date, dc, dd, deallocvt, depmod, devmem, df,
dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
dos2unix, du, dumpkmap, dumpleases, echo, ed, egrep, eject,
env, ether-wake, expand, expr, factor, fakeidentd, false,
fatattr, fbset, fbsplash, fdflush, fdformat, fdisk,
fgconsole, fgrep, find, findfs, flock, fold, free,
freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync,
ftpd, ftpget, ftpput, fuser, getopt, grep, groups, gunzip,
gzip, hd, hdparm, head, hexdump, hexedit, hostname, httpd,
hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd,
ifup, inetd, inotifyd, insmod, install, ionice, iostat, ip,
ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh, iproute,
iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
less, link, ln, loadfont, loadkmap, logread, losetup, ls,
lsattr, lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma,
lzop, lzopcat, makedevs, makemime, man, md5sum, mesg,
microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2,
mkfs.minix, mkfs.reiser, mkfs.vfat, mknod, mkswap, mktemp,
modinfo, modprobe, more, mount, mountpoint, mpstat, mv,
nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice,
nl, nmeter, nohup, nologin, nslookup, nuke, od, openvt,
partprobe, paste, patch, pgrep, pidof, ping, ping6,
pipe_progress, pivot_root, pkill, pmap, popmaildir,
poweroff, powertop, printenv, printf, ps, pscan, pstree,
pwd, pwdx, raidautorun, rdate, rdev, readlink, readprofile,
realpath, reboot, reformime, renice, reset, resize, resume,
rev, rfkill, rm, rmdir, rmmod, route, rtcwake, run-init,
run-parts, rx, script, scriptreplay, sed, sendmail, seq,
setconsole, setfattr, setfont, setkeycodes, setlogcons,
setpriv, setserial, setsid, setuidgid, sh, sha1sum,
sha256sum, sha3sum, sha512sum, showkey, shred, shuf,
slattach, sleep, smemcap, sort, split, ssl_client,
start-stop-daemon, stat, strings, stty, sum, svc, svok,
swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
tail, tar, tc, tcpsvd, tee, telnet, telnetd, test, tftp,
tftpd, time, timeout, top, touch, tr, traceroute,
traceroute6, true, truncate, tty, ttysize, tunctl, tune2fs,
ubiattach, ubidetach, ubimkvol, ubirename, ubirmvol,
ubirsvol, ubiupdatevol, udhcpc, udhcpc6, udhcpd, udpsvd,
uevent, umount, uname, uncompress, unexpand, uniq,
unix2dos, unlink, unlzma, unlzop, unxz, unzip, uptime,
usleep, uudecode, uuencode, vconfig, vi, volname, watch,
watchdog, wc, wget, which, whoami, whois, xargs, xxd, xz,
xzcat, yes, zcat, zcip
:/ $