BusyBox v1.20.0命令介绍(一)

转载地址:http://www.voidcn.com/article/p-qdmllssy-bru.html

命令合集

root@android:/ # busybox-smp
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   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, add-shell, addgroup, adduser, adjtimex, arp, arping, ash,
    awk, base64, basename, beep, blkid, blockdev, bootchartd, brctl,
    bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod,
    chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm,
    conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd,
    deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff,
    dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap,
    dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake,
    expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat,
    fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk,
    fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty,
    grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid,
    hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave,
    ifplugd, ifup, inetd, init, insmod, install, ionice, iostat, ip,
    ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel,
    kbd_mode, kill, killall, killall5, klogd, last, less, linux32, linux64,
    linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread,
    losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat,
    lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg,
    microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix,
    mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more,
    mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite,
    nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od,
    openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
    pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv,
    printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev,
    readahead, readlink, readprofile, realpath, reboot, reformime,
    remove-shell, renice, reset, resize, rev, rm, rmdir, rmmod, route, rpm,
    rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
    scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
    setkeycodes, setlogcons, setserial, setsid, setuidgid, sh, sha1sum,
    sha256sum, sha512sum, showkey, slattach, sleep, smemcap, softlimit,
    sort, split, start-stop-daemon, stat, strings, stty, su, sulogin, sum,
    sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
    tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time,
    timeout, top, touch, tr, traceroute, traceroute6, true, tty, ttysize,
    tunctl, udhcpc, udhcpd, udpsvd, umount, uname, unexpand, uniq,
    unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep, uudecode,
    uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog, wc, wget,
    which, who, whoami, whois, xargs, xz, xzcat, yes, zcat, zcip

1. acpid – 监听ACPI事件并处理

root@android:/ # busybox-smp acpid --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: acpid [-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]

Listen to ACPI events and spawn specific helpers on event arrival

    -d Log to stderr, not log file (implies -f)     -f Run in foreground     -c DIR Config directory [/etc/acpi]     -e FILE /proc event file [/proc/acpi/event]     -l FILE Log file [/var/log/acpid.log]     -p FILE Pid file [/var/run/acpid.pid]     -a FILE Action file [/etc/acpid.conf]     -M FILE Map file [/etc/acpi.map] 
Accept and ignore compatibility options -g -m -s -S -v

2. add-shell – 添加shell

root@android:/ # busybox-smp add-shell --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: add-shell SHELL... Add SHELLs to /etc/shells

3. adjtimex – 系统时间偏移

root@android:/ # busybox-smp adjtimex --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK] Read and optionally set system timebase parameters. See adjtimex(2) -q Quiet -o OFF Time offset, microseconds -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm) (positive values make clock run faster) -t TICK Microseconds per tick, usually 10000 -p TCONST

4. arp – 操作ARP缓冲区[★★]

root@android:/ # busybox-smp arp --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: arp 
[-vn]   [-H HWTYPE] [-i IF] -a [HOSTNAME]
[-v]            [-i IF] -d HOSTNAME [pub]
[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]
[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub
[-v]    [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub

Manipulate ARP cache

    -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  from given device     -A,-p AF Protocol family     -H HWTYPE Hardware address type 
root@android:/ # busybox-smp arp -a 
busybox-smp arp -a
? (192.168.0.1) at   on wlan0

5. arping – 发送ARP请求/回复

root@android:/ # busybox-smp arping --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP

Send ARP requests/replies

    -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, seconds     -I IFACE Interface to use (default eth0)     -s SRC_IP Sender IP address     DST_IP      Target IP address

6. ash

root@android:/ # busybox-smp ash --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]

Unix shell interpreter

7. base64 – 编解码文件工具

root@android:/ # busybox-smp base64 --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: base64 [-d] [FILE] Base64 encode or decode FILE to standard output -d Decode data

8. blkid – 查询块设备ID[★]

root@android:/ # busybox-smp blkid 
/dev/block/dm-2: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/dm-1: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/dm-0: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/vold/93:72: LABEL="ONDA_MID" UUID="4137-16F3"
/dev/block/vold/179:1: UUID="1039-699B"
/dev/block/nandj: LABEL="ONDA_MID" UUID="4137-16F3"
/dev/block/nandi: UUID="49377f1d-b0d0-43e3-846a-840c09d11dfe"
/dev/block/nandh: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/nande: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/nandd: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/nanda: LABEL="Volumn"
/dev/block/mmcblk0p1: UUID="1039-699B"

9. blockdev – 设置/查询块设备参数

root@android:/ # busybox-smp blockdev --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: blockdev OPTION BLOCKDEV

    --setro Set ro     --setrw Set rw     --getro Get ro     --getss Get sector size     --getbsz Get block size     --setbsz BYTES Set block size     --getsz Get device size in 512-byte sectors     --getsize64 Get device size in bytes     --flushbufs Flush buffers     --rereadpt Reread partition table

10. bootchartd – 系统启动分析工具[★★]

root@android:/ # busybox-smp bootchartd --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: bootchartd start [PROG ARGS]|stop|init

Create /var/log/bootchart.tgz with boot chart data

start: start background logging; with PROG, run PROG, then kill logging with USR1
stop: send USR1 to all bootchartd processes
init: start background logging; stop when getty/xdm is seen (for init scripts)
Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init

11. brctl – 管理网桥[★★]

root@android:/ # busybox-smp brctl --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: brctl COMMAND [BRIDGE [INTERFACE]] Manage ethernet bridges Commands: show Show a list of bridges addbr BRIDGE Create BRIDGE delbr BRIDGE Delete BRIDGE addif BRIDGE IFACE Add IFACE to BRIDGE delif BRIDGE IFACE Delete IFACE from BRIDGE setageing BRIDGE TIME Set ageing time setfd BRIDGE TIME Set bridge forward delay sethello BRIDGE TIME Set hello time setmaxage BRIDGE TIME Set max message age setpathcost BRIDGE COST Set path cost setportprio BRIDGE PRIO Set port priority setbridgeprio BRIDGE PRIO Set bridge priority stp BRIDGE [1/yes/on|0/no/off] STP on/off

12. catv – 显示非常规字符

root@android:/ # busybox-smp catv --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: catv [-etv] [FILE]...

Display nonprinting characters as ^x or M-x

    -e  End each line with $
    -t  Show tabs as ^I
    -v  Don't use ^x or M-x escapes

13. chat – 拨号工具,和pppd一起使用[★★★]

root@android:/ # busybox-smp chat --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: chat EXPECT [SEND [EXPECT [SEND...]]]

Useful for interacting with a modem connected to stdin/stdout.
A script consists of one or more "expect-send" pairs of strings,
each pair is a pair of arguments. Example:
chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'

14. chattr – 修改文件的属性

root@android:/ # busybox-smp chattr --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: chattr [-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]... Change file attributes on an ext2 fs Modifiers: - Remove attributes + Add attributes = Set attributes Attributes: A Don't track atime a Append mode only c Enable compress D Write dir contents synchronously d Don't backup with dump i Cannot be modified (immutable) j Write all data to journal first s Zero disk storage when deleted S Write file contents synchronously t Disable tail-merging of partial blocks with other files u Allow file to be undeleted -R Recurse -v Set the file's version/generation number

15. chpst – 修改进程状态

root@android:/ # busybox-smp chpst --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: chpst [-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR]
    [-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N]
    [-p N] [-f BYTES] [-c BYTES] PROG ARGS

Change the process state, run PROG

    -u USER[:GRP] Set uid and gid     -U USER[:GRP] Set $UID and $GID in environment     -e DIR Set environment variables as specified by files             in DIR: file=1st_line_of_file
    -/ DIR Chroot to DIR     -n NICE Add NICE to nice value     -m BYTES Same as -d BYTES -s BYTES -l BYTES     -d BYTES Limit data segment     -o N Limit number of open files per process     -p N Limit number of processes per uid     -f BYTES Limit output file sizes     -c BYTES Limit core file size     -v Verbose     -P Create new process group     -0 Close stdin     -1 Close stdout     -2 Close stderr

16. chrt – 修改进程的调度级别和分类

root@android:/ # busybox-smp chrt --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: chrt [-prfom] [PRIO] [PID | PROG ARGS]

Change scheduling priority and class for a process

    -p Operate on PID     -r Set SCHED_RR class     -f Set SCHED_FIFO class     -o Set SCHED_OTHER class     -m Show min/max priorities

17. chvt – 切换前置的终端

root@android:/ # busybox-smp chvt --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: chvt N Change the foreground virtual terminal to /dev/ttyN

18. comm – 文件比较

root@android:/ # busybox-smp comm –help 
busybox-smp comm –help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: comm [-123] FILE1 FILE2

Compare FILE1 with FILE2

-1  Suppress lines unique to FILE1
-2  Suppress lines unique to FILE2
-3  Suppress lines common to both files

19. conspy – 命令行模式的VNC工具

root@android:/ # busybox-smp conspy --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: conspy [-vcsndfFQ] [-x COL] [-y LINE] [CONSOLE_NO]

A text-mode VNC like program for Linux virtual consoles.
To exit, quickly press ESC 3 times.

    -v Don't send keystrokes to the console     -c Create missing /dev/{tty,vcsa}N     -s Open a SHELL session     -n Black & white     -d Dump console to stdout     -f Follow cursor     -F Assume console is on a framebuffer device     -Q Disable exit on ESC-ESC-ESC     -x COL Starting column     -y LINE Starting line

20. cpio – 文档备份工具

// http://man.linuxde.net/cpio  
root@android:/ # busybox-smp cpio --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: cpio [-dmvu] [-F FILE] [-H newc] [-tio] [-p DIR] [EXTR_FILE]...

Extract or list files from a cpio archive, or
create an archive (-o) or copy files (-p) using file list on stdin

Main operation mode:
    -t  List
    -i  Extract EXTR_FILEs (or all)
    -o  Create (requires -H newc)
    -p DIR  Copy files to DIR
    -d  Make leading directories
    -m  Preserve mtime
    -v  Verbose
    -u  Overwrite
    -F FILE Input (-t,-i,-p) or output (-o) file
    -H newc Archive format

21. crond – 定时任务[★★]

root@android:/ # busybox-smp crond --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: crond -fbS -l N -d N -L LOGFILE -c DIR

    -f  Foreground
    -b  Background (default)
    -S  Log to syslog (default)
    -l  Set log level. 0 is the most verbose, default 8
    -d  Set log level, log to stderr
    -L  Log to file
    -c  Working dir

22. crontab – 定时任务[★★]

root@android:/ # busybox-smp crontab --help  
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: crontab [-c DIR] [-u USER] [-ler]|[FILE]

    -c Crontab directory     -u User     -l List crontab     -e Edit crontab     -r Delete crontab     FILE    Replace crontab by FILE ('-': stdin)

23. cryptpw – 文件加密

root@android:/ # busybox-smp cryptpw --help  
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: cryptpw [OPTIONS] [PASSWORD] [SALT]

Crypt PASSWORD using crypt(3)

    -P,--password-fd=N  Read password from fd N
    -m,--method=TYPE Encryption method -S,--salt=SALT

24. cttyhack –

root@android:/ # busybox-smp cttyhack --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: cttyhack [PROG ARGS]

Give PROG a controlling tty if possible.
Example for /etc/inittab (for busybox init):
    ::respawn:/bin/cttyhack /bin/sh
Giving controlling tty to shell running with PID 1:
    $ exec cttyhack sh
Starting interactive shell from boot shell script:
    setsid cttyhack sh

25. dc – 计算器

root@android:/ # busybox-smp dc --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: dc EXPRESSION...

Tiny RPN calculator. Operations:
+, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, eor,
p - print top of the stack (without popping),
f - print entire stack,
o - pop the value and set output radix (must be 10, 16, 8 or 2).
Examples: 'dc 2 2 add p' -> 4, 'dc 8 8 * 2 2 + / p' -> 16

26. deallocvt – 释放未使用的终端

root@android:/ # busybox-smp deallocvt --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: deallocvt [N] Deallocate unused virtual terminal /dev/ttyN

27. delgroup – 删除用户组

root@android:/ # busybox-smp delgroup --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: delgroup [USER] GROUP Delete group GROUP from the system or user USER from group GROUP

28. depmod – 产生模块依赖的映射文件

root@android:/ # busybox-smp depmod --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: depmod [-qfwrsv] MODULE [symbol=value]...

    -r Remove MODULE (stacks) or do autoclean     -q Quiet     -v Verbose     -f Force     -w Wait for unload     -s Report via syslog instead of stderr

29. devmem – 读写指定内存

root@android:/ # busybox-smp devmem --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: devmem ADDRESS [WIDTH [VALUE]]

Read/write from physical address

    ADDRESS Address to act upon
    WIDTH   Width (8/16/...)
    VALUE   Data to be written

30. dhcprelay – 网络中继

root@android:/ # busybox-smp dhcprelay --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]

Relay DHCP requests between clients and server

31. dnsd – 小型DNS服务

root@android:/ # busybox-smp dnsd --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: dnsd [-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]

Small static DNS server daemon

    -c FILE Config file     -t SEC TTL     -p PORT Listen on PORT     -i ADDR Listen on ADDR     -d Daemonize     -v Verbose     -s Send successful replies only. Use this if you want         to use /etc/resolv.conf with two nameserver lines:
            nameserver DNSD_SERVER
            nameserver NORMAL_DNS_SERVER

32. dumpkmap – 打印键盘映射表

root@android:/ # busybox-smp dumpkmap --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: dumpkmap > keymap Print a binary keyboard translation table to stdout

33. dumpleases – 打印DHCP租期

root@android:/ # busybox-smp dumpleases --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: dumpleases [-r|-a] [-f LEASEFILE] Display DHCP leases granted by udhcpd -f,--file=FILE Lease file -r,--remaining Show remaining time -a,--absolute Show expiration time

34. ed – 单行纯文本编辑器

// http://man.linuxde.net/ed
root@android:/ # busybox-smp ed --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: ed

35. eject – 弹出设备

root@android:/ # busybox-smp eject --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: eject [-t] [-T] [DEVICE] Eject DEVICE or default /dev/cdrom -s SCSI device -t Close tray -T Open/close tray (toggle)

36. env – 环境变量打印/设置

root@android:/ # busybox-smp env --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: env [-iu] [-] [name=value]... [PROG ARGS]

Print the current environment or run PROG after setting up
the specified environment

    -, -i   Start with an empty environment
    -u  Remove variable from the environment

37. envdir – 按照指定的文件设置环境变量

root@android:/ # busybox-smp envdir --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: envdir DIR PROG ARGS Set various environment variables as specified by files in the directory DIR, run PROG

38. ether-wake – 发送数据包唤醒指定MAC的设备

root@android:/ # busybox-smp ether-wake --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: ether-wake [-b] [-i iface] [-p aa:bb:cc:dd[:ee:ff]] MAC

Send a magic packet to wake up sleeping machines.
MAC must be a station address (00:11:22:33:44:55) or
a hostname with a known 'ethers' entry.

    -b      Send wake-up packet to the broadcast address
    -i iface    Interface to use (default eth0)
    -p pass     Append four or six byte password PW to the packet

39. expand – 将文件中的TAB转换为空格

root@android:/ # busybox-smp expand --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: expand [-i] [-t N] [FILE]...

Convert tabs to spaces, writing to stdout

    -i,--initial    Don't convert tabs after non blanks -t,--tabs=N Tabstops every N chars

40. expr – 打印变量的值

root@android:/ # busybox-smp expr --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: expr EXPRESSION

Print the value of EXPRESSION to stdout

EXPRESSION may be:
    ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2
    ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0
    ARG1 < ARG2 1 if ARG1 is less than ARG2, else 0. Similarly:
    ARG1 <= ARG2
    ARG1 = ARG2
    ARG1 != ARG2
    ARG1 >= ARG2
    ARG1 > ARG2
    ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly:
    ARG1 - ARG2
    ARG1 * ARG2
    ARG1 / ARG2
    ARG1 % ARG2
    STRING : REGEXP     Anchored pattern match of REGEXP in STRING
    match STRING REGEXP Same as STRING : REGEXP
    substr STRING POS LENGTH Substring of STRING, POS counted from 1
    index STRING CHARS  Index in STRING where any CHARS is found, or 0
    length STRING       Length of STRING
    quote TOKEN     Interpret TOKEN as a string, even if
                it is a keyword like 'match' or an
                operator like '/'
    (EXPRESSION)        Value of EXPRESSION

Beware that many operators need to be escaped or quoted for shells.
Comparisons are arithmetic if both ARGs are numbers, else
lexicographical. Pattern matches return the string matched between
\( and \) or null; if \( and \) are not used, they return the number
of characters matched or 0.

41. fakeidentd – 提供假身份服务

root@android:/ # busybox-smp fakeidentd --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: fakeidentd [-fiw] [-b ADDR] [STRING]

Provide fake ident (auth) service

    -f Run in foreground     -i Inetd mode     -w Inetd 'wait' mode     -b ADDR Bind to specified address     STRING  Ident answer string (default: nobody)

42. false – 返回退出码(1)

root@android:/ # busybox-smp false --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: false 

Return an exit code of FALSE (1)

43. fbset – 打印/修改显示缓存的设置

root@android:/ # busybox-smp  fbset --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: fbset [OPTIONS] [MODE] Show and modify frame buffer settings

44. fbsplash – 显示一张图片

root@android:/ # busybox-smp fbsplash --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: fbsplash -s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]

    -s  Image
    -c  Hide cursor
    -d  Framebuffer device (default /dev/fb0)
    -i  Config file (var=value):
            BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT
            BAR_R,BAR_G,BAR_B
    -f  Control pipe (else exit after drawing image)
            commands: 'NN' (% for progress bar) or 'exit'

45. fdformat – 格式化软盘

root@android:/ # busybox-smp fdformat --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: fdformat [-n] DEVICE

Format floppy disk

    -n  Don't verify after format

46. fgconsole – 前置活动终端

root@android:/ # busybox-smp fgconsole --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: fgconsole Get active console

47. fgrep – 字符串查找命令

// http://blog.sina.com.cn/s/blog_51dc0fba0100lqu8.html
root@android:/ # busybox-smp fgrep --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

No help available.

48. findfs – 文件系统查找

root@android:/ # busybox-smp findfs --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: findfs LABEL=label or UUID=uuid

Find a filesystem device based on a label or UUID

49. flock – [Un]lock file

root@android:/ # busybox-smp flock --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary. Usage: flock [-sxun] FD|{FILE [-c] PROG ARGS} [Un]lock file descriptor, or lock FILE, run PROG -s Shared lock -x Exclusive lock (default) -u Unlock FD -n Fail rather than wait

50. fold – 控制文件内容输出时所占用的屏幕宽度

// http://man.linuxde.net/fold
root@android:/ # busybox-smp fold --help 
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.

Usage: fold [-bs] [-w WIDTH] [FILE]...

Wrap input lines in each FILE (or stdin), writing to stdout

    -b  Count bytes rather than columns
    -s  Break at spaces
    -w  Use WIDTH columns instead of 80

你可能感兴趣的:(busybox)