BusyBox:E680i的瑞士军刀
时间:2006-06-01 来源:blue_stone
瑞士军刀以其小巧轻便,功能众多而闻名世界, 成为各国军人的必备工具, 并广泛应用于民间. E680i本身只带了很少一些命令(竟然连我最常用的more命令都没有), 让我这个习惯与在命令行下畅游的小子感觉很不爽, 下定决心一定要编译出可以在E680i上使用的more, 在寻求过程中,无意发现了busybox这个小巧强悍的工具,让我欣喜若狂. 不感独享,放在这里.
telnet到E680i上后运行busybox命令将给出busybox支持的命令
busybox后跟上命令,如more, 就可以当作more命令来使用了.
如果嫌每次输入busybox 麻烦,可以在登陆配置文件中添加一个别名
这样就不需要输入busybox就可以使用more了
|
telnet到E680i上后运行busybox命令将给出busybox支持的命令
mmca1 # busybox BusyBox v1.1.0 (2006.06.01-10:08+0000) multi-call binary Usage: busybox [function] [arguments]... 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: [, [[, addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bbconfig, bunzip2, busybox, bzcat, cal, cat, chattr, chgrp, chmod, chown, chroot, chvt, clear, cmp, comm, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, e2fsck, e2label, echo, egrep, eject, env, ether-wake, expr, fakeidentd, false, fbset, fdflush, fdformat, fdisk, fgrep, find, findfs, fold, free, freeramdisk, fsck, fsck.ext2, fsck.ext3, fsck.minix, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod, install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iptunnel, kill, killall, klogd, lash, last, length, less, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, ls, lsattr, lsmod, makedevs, md5sum, mdev, mesg, mkdir, mke2fs, mkfifo, mkfs.ext2, mkfs.ext3, mkfs.minix, mknod, mkswap, mktemp, modprobe, more, mount, mountpoint, msh, mt, mv, nameif, nc, netstat, nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot, renice, reset, rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, runlevel, rx, sed, seq, setconsole, setkeycodes, setsid, sha1sum, sleep, sort, start-stop-daemon, stat, strings, stty, su, sulogin, sum, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, tune2fs, udhcpc, udhcpd, umount, uname, uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip mmca1 # |
busybox后跟上命令,如more, 就可以当作more命令来使用了.
mmca1 # busybox more acmattach.lin echo MotNet > /proc/usbd-switch mmca1 # |
如果嫌每次输入busybox 麻烦,可以在登陆配置文件中添加一个别名
alias more="busybox more" |
这样就不需要输入busybox就可以使用more了
mmca1 # more acmattach.lin echo MotNet > /proc/usbd-switch mmca1 # |
相关阅读 更多 +