BusyBox v 1.20.0 명령 소개(3)

22529 단어 busybox

전송 주소:http://www.voidcn.com/article/p-vugwbjtm-bru.html
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@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  
  

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–프로필 읽 기
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–시스템 지정 셸 제거
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  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'  
  

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–SHA 1 검사 코드 인쇄/검사
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 = ;
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

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

좋은 웹페이지 즐겨찾기