/*********************************************************************
* Author : lile
* Modified : 2019年12月28日星期六 10:56:13
* Email : [email protected]
* HomePage : lile777.blog.csdn.net
* CopyRight : 该文章版权由lile所有。
* 保留原文出处链接和本声明的前提下,可在非商业目的下任意传播和复制。
* 对于商业目的下对本文的任何行为需经作者同意。
*********************************************************************/
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
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
root@android:/ # busybox-smp pipe_progress --help
BusyBox v1.20.0 (2012-08-22 21:36:24 CDT) multi-call binary.
No help available.
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
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
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
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
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)
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)
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
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
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
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 '/'
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
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
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
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
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
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)
// 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
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
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
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
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
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
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
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 after signal is processed
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
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
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
// 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).
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'
// 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
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
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
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
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.
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)
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
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
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
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
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
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
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
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
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 = ;
eol2 = ; swtch = ; 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
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
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
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