版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lile777/article/details/79485747
101. openvt – 另起新终端运行
root@android:/ # busybox-smp openvt --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: openvt [-c N] [-sw] [PROG ARGS]
Start PROG on a new virtual terminal
-c N Use specified VT
-s Switch to the VT
-w Wait for PROG to exit
102. pidof – 显示进程的PID[★★]
root@android:/ # busybox-smp pidof --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pidof [OPTIONS] [NAME]...
List PIDs of all processes with names that match NAMEs
-s Show only one PID
-o PID Omit given pid
Use %PPID to omit pid of pidof's parent
103. pipe_progress –
root@android:/ # busybox-smp pipe_progress --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
No help available.
104. pivot_root – 修改根目录
root@android:/ # busybox-smp pivot_root --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pivot_root NEW_ROOT PUT_OLD
Move the current root file system to PUT_OLD and make NEW_ROOT
the new root file system
105. pkill – 发送信号给指定进程
root@android:/ # busybox-smp pkill --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pkill [-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]
Send a signal to process(es) selected by regex PATTERN
-l List all signals
-f Match against entire command line
-n Signal the newest process only
-o Signal the oldest process only
-v Negate the match
-x Match whole name (not substring)
-s Match session ID (0 for current)
-P Match parent process ID
106. pmap – 打印进程内存信息[★]
root@android:/ # busybox-smp pmap --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pmap [-xq] PID
Display detailed process memory usage
-x Show details
-q Quiet
107. popmaildir – 同步运程邮件到本地
root@android:/ # busybox-smp popmaildir --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: popmaildir [OPTIONS] MAILDIR [CONN_HELPER ARGS]
Fetch content of remote mailbox to local maildir
-s Skip authorization
-T Get messages with TOP instead of RETR
-k Keep retrieved messages on the server
-t SEC Network timeout
-F "PROG ARGS" Filter program (may be repeated)
-M "PROG ARGS" Delivery program
Fetch from plain POP3 server:
popmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt
Fetch from SSLed POP3 server and delete fetched emails:
popmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt
108. pscan – 扫描主机开放端口[★]
root@android:/ # busybox-smp pscan --help
busybox-smp pscan --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pscan [-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST
Scan a host, print all open ports
-c Show closed ports too
-b Show blocked ports too
-p Scan from this port (default 1)
-P Scan up to this port (default 1024)
-t Timeout (default 5000 ms)
-T Minimum rtt (default 5 ms, increase for congested hosts)
109. pstree – 显示进程树[★★]
root@android:/ # busybox-smp pstree --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pstree [-p] [PID|USER]
Display process tree, optionally start from USER or PID
-p Show pids
root@android:/ # busybox-smp pstree -p
busybox-smp pstree -p
init(1)-+-adbd(1237)-+-sh(11664)---busybox-smp(12977)
| |-{adbd}(1238)
| |-{adbd}(1239)
| |-{adbd}(1240)
| `-{adbd}(11665)
|-debuggerd(1225)
|-drmserver(1229)---{Binder_1}(1753)
110. pwdx –显示进程的当前路径[★]
root@android:/ # busybox-smp pwdx --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: pwdx PID...
Show current directory for PIDs
111. raidautorun – 磁盘阵列自动运行
root@android:/ # busybox-smp raidautorun --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: raidautorun DEVICE
Tell the kernel to automatically search and start RAID arrays
112. rdate – 从服务器同步时间[★★]
root@android:/ # busybox-smp rdate --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rdate [-sp] HOST
Get and possibly set the system date and time from a remote HOST
-s Set the system date and time (default)
-p Print the date and time
113. rdev – 打印系统设备结点
root@android:/ # busybox-smp rdev --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rdev
Print the device node associated with the filesystem mounted at '/'
114. readahead – 重新载入文件
root@android:/ # busybox-smp readahead --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: readahead [FILE]...
Preload FILEs to RAM
115. readprofile – 读取profile
root@android:/ # busybox-smp readprofile --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: readprofile [OPTIONS]
-m mapfile (Default: /boot/System.map)
-p profile (Default: /proc/profile)
-M NUM Set the profiling multiplier to NUM
-i Print only info about the sampling step
-v Verbose
-a Print all symbols, even if count is 0
-b Print individual histogram-bin counts
-s Print individual counters within functions
-r Reset all the counters (root only)
-n Disable byte order auto-detection
116. realpath – 获取文件的绝对路径[★★]
root@android:/ # busybox-smp realpath --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: realpath FILE...
Return the absolute pathnames of given FILE
root@android:/ # busybox-smp realpath init.rc
/init.rc
117. reformime – 解码MIME-encoded消息
root@android:/ # busybox-smp reformime --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: reformime [OPTIONS]
Parse MIME-encoded message on stdin
-x PREFIX Extract content of MIME sections to files
-X PROG ARGS Filter content of MIME sections through PROG
Must be the last option
Other options are silently ignored
118. remove-shell – 去除系统的指定shell
root@android:/ # busybox-smp remove-shell --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: remove-shell SHELL...
Remove SHELLs from /etc/shells
1|root@android:/ # ll /system/bin/mksh
-rwxr-xr-x root shell 157520 2013-09-05 18:39 mksh
119. renice – 调整运行中的进程优先级
root@android:/ # busybox-smp renice --help
busybox-smp renice --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: renice {{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]
Change scheduling priority for a running process
-n Adjust current nice value (smaller is faster)
-p Process id(s) (default)
-g Process group id(s)
-u Process user name(s) and/or id(s)
120. rev – 逐行方向字符
// http://man.linuxde.net/rev
root@android:/ # busybox-smp rev --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rev [FILE]...
Reverse lines of FILE
121. route – 设置路由表[★★★]
root@android:/ # busybox-smp route --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: route [{add|del|delete}]
Edit kernel routing tables
-n Don't resolve names
-e Display other/more information
-A inet{6} Select address family
122. rpm – 软件管理[★★]
root@android:/ # busybox-smp rpm --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm
Manipulate RPM packages
Commands:
-i Install package
-qp Query package
-i Show information
-l List contents
-d List documents
-c List config files
123. rpm2cpio - 将rpm软件包转换为cpio格式的文件
root@android:/ # busybox-smp rpm2cpio --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rpm2cpio package.rpm
Output a cpio archive of the rpm file
124. rtcwake – 休眠指定的时间
root@android:/ # busybox-smp rtcwake --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rtcwake [-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]
Enter a system sleep state until specified wakeup time
-a,--auto Read clock mode from adjtime
-l,--local Clock is set to local time
-u,--utc Clock is set to UTC time
-d,--device=DEV Specify the RTC device
-m,--mode=MODE Set the sleep state (default: standby)
-s,--seconds=SEC Set the timeout in SEC seconds from now
-t,--time=TIME Set the timeout to TIME seconds from epoch
125. run-parts – 批量运行脚本
root@android:/ # busybox-smp run-parts --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: run-parts [-t] [-l] [-a ARG] [-u MASK] DIRECTORY
Run a bunch of scripts in DIRECTORY
-t Print what would be run, but don't actually run anything
-a ARG Pass ARG as argument for every program
-u MASK Set the umask to MASK before running every program
-l Print names of all matching files even if they are not executable
126. runsv – 开启并监控服务[★]
root@android:/ # busybox-smp runsv --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: runsv DIR
Start and monitor a service and optionally an appendant log service
127. runsvdir – 批量启动服务
root@android:/ # busybox-smp runsvdir --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: runsvdir [-P] [-s SCRIPT] DIR
Start a runsv process for each subdirectory. If it exits, restart it.
-P Put each runsv in a new session
-s SCRIPT Run SCRIPT <signo> after signal is processed
128. rx – xmodem模式接收[★]
root@android:/ # busybox-smp rx --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: rx FILE
Receive a file using the xmodem protocol
129. script – 终端录屏工具[★]
root@android:/ # busybox-smp script --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: script [-afqt] [-c PROG] [OUTFILE]
-a Append output
-c PROG Run PROG, not shell
-f Flush output after each write
-q Quiet
-t Send timing to stderr
130. scriptreplay – 录屏回放
root@android:/ # busybox-smp scriptreplay --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: scriptreplay timingfile [typescript [divisor]]
Play back typescripts, using timing information
131. sed – 流编辑器,文件编辑[★★★]
// http://man.linuxde.net/sed
root@android:/ # busybox-smp sed --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: sed [-inr] [-f FILE]... [-e CMD]... [FILE]...
or: sed [-inr] CMD [FILE]...
-e CMD Add CMD to sed commands to be executed
-f FILE Add FILE contents to sed commands to be executed
-i Edit files in-place (else sends result to stdout)
-n Suppress automatic printing of pattern space
-r Use extended regex syntax
If no -e or -f, the first non-option argument is the sed command string.
Remaining arguments are input files (stdin if none).
132. sendmail – 发邮件
root@android:/ # busybox-smp sendmail --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: sendmail [OPTIONS] [RECIPIENT_EMAIL]...
Read email from stdin and send it
Standard options:
-t Read additional recipients from message body
-f SENDER Sender (required)
-o OPTIONS Various options. -oi implied, others are ignored
-i -oi synonym. implied and ignored
Busybox specific options:
-v Verbose
-w SECS Network timeout
-H 'PROG ARGS' Run connection helper
Examples:
-H 'exec openssl s_client -quiet -tls1 -starttls smtp
-connect smtp.gmail.com:25' <email.txt
[4<username_and_passwd.txt | -auUSER -apPASS]
-H 'exec openssl s_client -quiet -tls1
-connect smtp.gmail.com:465' <email.txt
[4<username_and_passwd.txt | -auUSER -apPASS]
-S HOST[:PORT] Server
-auUSER Username for AUTH LOGIN
-apPASS Password for AUTH LOGIN
Other options are silently ignored; -oi -t is implied
Use makemime to create emails with attachments
133. seq – 生成数字/字符序列[★]
// http://man.linuxde.net/seq
root@android:/ # busybox-smp seq --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: seq [-w] [-s SEP] [FIRST [INC]] LAST
Print numbers from FIRST to LAST, in steps of INC.
FIRST, INC default to 1.
-w Pad to last with leading zeros
-s SEP String separator
134. setarch – 设置32/64位
root@android:/ # busybox-smp setarch --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: setarch personality PROG ARGS
Personality may be:
linux32 Set 32bit uname emulation
linux64 Set 64bit uname emulation
135. setconsole – 重设系统终端
root@android:/ # busybox-smp setconsole --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: setconsole [-r|--reset] [DEVICE]
Redirect system console output to DEVICE (default: /dev/tty)
-r Reset output to /dev/console
136. setfont – 载入终端字体
root@android:/ # busybox-smp setfont --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: setfont FONT [-m MAPFILE] [-C TTY]
Load a console font
-m MAPFILE Load console screen map
-C TTY Affect TTY instead of /dev/tty
137. setkeycodes – 设置键码
root@android:/ # busybox-smp setkeycodes --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: setkeycodes SCANCODE KEYCODE...
Set entries into the kernel's scancode-to-keycode map,
allowing unusual keyboards to generate usable keycodes.
SCANCODE may be either xx or e0xx (hexadecimal),
and KEYCODE is given in decimal.
138. setlogcons – 重设系统日志输出终端
root@android:/ # busybox-smp setlogcons --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: setlogcons N
Redirect the kernel output to console N (0 for current)
139. setserial – 查询/设置串口
root@android:/ # busybox-smp setserial --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: setserial [-gabGvzV] DEVICE [PARAMETER [ARG]]...
Request or set Linux serial port information
-g Interpret parameters as list of devices for reporting
-a Print all available information
-b Print summary information
-G Print in form which can be fed back
to setserial as command line parameters
-z Zero out serial flags before setting
-v Verbose
Parameters: (* = takes an argument, ^ = can be turned off by preceding ^)
*port, *irq, *divisor, *uart, *baund_base, *close_delay, *closing_wait,
^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout,
^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig,
spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust
UART types:
unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
U6_16550A
140. sha1sum – 打印/检查SHA1校验码
root@android:/ # busybox-smp sha1sum --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: sha1sum [-c[sw]] [FILE]...
Print or check SHA1 checksums
-c Check sums against list in FILEs
-s Don't output anything, status code shows success
-w Warn about improperly formatted checksum lines
141. showkey – 显示按键码
root@android:/ # busybox-smp showkey --help
// http://blog.sina.com.cn/s/blog_3e4774e30101dmv7.html
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: showkey [-a | -k | -s]
Show keys pressed
-a Display decimal/octal/hex values of the keys
-k Display interpreted keycodes (default)
-s Display raw scan-codes
142. slattach – 联通网络接口到串口线
root@android:/ # busybox-smp slattach --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: slattach [-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE
Attach network interface(s) to serial line(s)
-p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive)
-s SPD Set line speed
-e Exit after initializing device
-h Exit when the carrier is lost
-c PROG Run PROG when the line is hung up
-m Do NOT initialize the line in raw 8 bits mode
-L Enable 3-wire operation
-F Disable RTS/CTS flow control
143. sort – 对文件排序[★★]
root@android:/ # busybox-smp sort --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...
Sort lines of text
-b Ignore leading blanks
-c Check whether input is sorted
-d Dictionary order (blank or alphanumeric only)
-f Ignore case
-g General numerical sort
-i Ignore unprintable characters
-k Sort key
-M Sort month
-n Sort numbers
-o Output to file
-k Sort by key
-t CHAR Key separator
-r Reverse sort order
-s Stable (don't sort ties alphabetically)
-u Suppress duplicate lines
-z Lines are terminated by NUL, not newline
-mST Ignored for GNU compatibility
144. split – 文件切割[★]
root@android:/ # busybox-smp split –help
// http://man.linuxde.net/split
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: split [OPTIONS] [INPUT [PREFIX]]
-b N[k|m] Split by N (kilo|mega)bytes
-l N Split by N lines
-a N Use N letters as suffix
145. start-stop-daemon – 搜索并停止/启动进程
root@android:/ # busybox-smp start-stop-daemon --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]
Search for matching processes, and then
-K: stop all matching processes.
-S: start a process unless a matching process is found.
Process matching:
-u,--user USERNAME|UID Match only this user's processes
-n,--name NAME Match processes with NAME
in comm field in /proc/PID/stat
-x,--exec EXECUTABLE Match processes with this command
in /proc/PID/{exe,cmdline}
-p,--pidfile FILE Match a process with PID from the file
All specified conditions must match
-S only:
-x,--exec EXECUTABLE Program to run
-a,--startas NAME Zeroth argument
-b,--background Background
-N,--nicelevel N Change nice level
-c,--chuid USER[:[GRP]] Change to user/group
-m,--make-pidfile Write PID to the pidfile specified by -p
-K only:
-s,--signal SIG Signal to send
-t,--test Match only, exit with 0 if a process is found
Other:
-o,--oknodo Exit with status 0 if nothing is done
-v,--verbose Verbose
-q,--quiet Quiet
146. strings – 打印二进制文件中的可读字符
root@android:/ # busybox-smp strings --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: strings [-afo] [-n LEN] [FILE]...
Display printable strings in a binary file
-a Scan whole file (default)
-f Precede strings with filenames
-n LEN At least LEN characters form a string (default 4)
-o Precede strings with decimal offsets
147. stty – 打印/设置终端参数[★★]
root@android:/ # busybox-smp stty --help
// http://man.linuxde.net/stty
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: stty [-a|g] [-F DEVICE] [SETTING]...
Without arguments, prints baud rate, line discipline,
and deviations from stty sane
-F DEVICE Open device instead of stdin
-a Print all current settings in human-readable form
-g Print in stty-readable form
[SETTING] See manpage
root@android:/ # busybox-smp stty -a
speed 38400 baud;stty: standard input
line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
148. sum – 校验文件并统计数据块
root@android:/ # busybox-smp sum --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: sum [-rs] [FILE]...
Checksum and count the blocks in a file
-r Use BSD sum algorithm (1K blocks)
-s Use System V sum algorithm (512byte blocks)
root@android:/ # busybox-smp sum /init.rc
37236 20
149. sv – 控制服务[★]
root@android:/ # busybox-smp sv --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: sv [-v] [-w SEC] CMD SERVICE_DIR...
Control services monitored by runsv supervisor.
Commands (only first character is enough):
status: query service status
up: if service isn't running, start it. If service stops, restart it
once: like 'up', but if service stops, don't restart it
down: send TERM and CONT signals. If ./run exits, start ./finish
if it exists. After it stops, don't restart service
exit: send TERM and CONT signals to service and log service. If they exit,
runsv exits too
pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send
STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service
150. svlogd – 日志存储[★★]
root@android:/ # busybox-smp svlogd --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
Usage: svlogd [-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR...
Continuously read log data from stdin and write to rotated log files in DIRs
DIR/config file modifies behavior:
sSIZE - when to rotate logs
nNUM - number of files to retain
!PROG - process rotated log with PROG
+,-PATTERN - (de)select line for logging
E,ePATTERN - (de)select line for stderr