|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。9 H& ~2 G t. L) y7 b
$ l6 C# u' k4 ]
- root@F650A:~ # /usr/bin/busybox
3 c, a `4 w" h$ F6 ~1 B6 _# k - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
( B3 |6 M! y h' j% n - BusyBox is copyrighted by many authors between 1998-2012., V$ ~. @! a& l; h" [. l( I* F
- Licensed under GPLv2. See source distribution for detailed
( X) o) c! g8 R; } - copyright notices.$ C' J' `) _ S
- ; b% M$ w% @6 G: c+ ?4 X ?
- Usage: busybox [function [arguments]...]
) H* s/ \6 c# D! D S4 s - or: busybox --list[-full]
2 W' n& B" k8 X- D" U) t8 V - or: busybox --install [-s] [DIR]1 B& }2 |# l8 ^
- or: function [arguments]...& b" V) r: {5 t
- \2 b) {3 P; Z9 S7 l8 Y5 F5 u
- BusyBox is a multi-call binary that combines many common Unix; Z" d" U7 h7 u& a# N
- utilities into a single executable. Most people will create a x/ N$ o# J% v% T
- link to busybox for each function they wish to use and BusyBox
7 ?, ~: s/ H5 X- z2 h+ A, [ - will act like whatever it was invoked as.
# A$ Z5 c/ Z/ c3 S4 p
3 J0 [# l/ d1 h. y; W5 u- Currently defined functions:, U0 q5 [! E/ n
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,
`) p5 k4 {9 f% n# r4 [1 P& p - bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,* F' T0 x% h+ v# M
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,& ?, K/ [4 H3 \) ^
- diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
; m* a- J' o$ X' f$ e6 {/ X1 f - ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
" l- O* J& v* t* e) y8 w) r4 J - freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,
( p( J$ ]2 P) V. t# G/ A# g" ^ - hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
6 I0 R# i% T# e2 I5 U, D/ V$ Y9 k - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
* f6 z+ M( t( d" ^8 M' j# x - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,5 J" T$ Y: v& @. L8 K, R# e
- login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,7 k- e+ [/ T0 ]$ V* _
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,5 z( H3 N) U5 I |. ~
- modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,5 d+ C p$ z( r* \
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
! r/ J4 k0 W, i0 Z1 Z; P - poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,. H& Y5 w1 j. N. M+ ?- i
- renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,
( X, Q: q5 T' Y - setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,5 G0 p0 E# t! g: n9 [/ S- J) p
- sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
' _" e* S4 I7 z% s$ } - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
. s- ~9 F E; k3 ? - touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
: I" Q% d( ^& D# t+ P - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
M5 I9 X6 B; A6 g+ R% k - uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,
/ \, q# Q& Z `8 J: q - who, whoami, xargs, xz, xzcat, yes, zcat
7 M% S$ _1 U* f$ R. K
1 R! H: b) w% J. _, e# x& T4 _: A. I
复制代码- root@F650A:~ # nano -h
7 b# i, e/ e& K* i - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...) S9 ?- S3 ?( Z* Y
- 8 v' a) x; U' I8 C- d8 g
- Option GNU long option Meaning& I( k4 h/ q/ o9 w9 L+ X& q
- +LINE,COLUMN Start at line LINE, column COLUMN
% d0 v4 v. i* j m" I - -D --boldtext Use bold instead of reverse video text! Y. z1 H& c- w! s3 M+ Y
- -K --rebindkeypad Fix numeric keypad key confusion problem
2 \# F6 R: c! _0 r7 W. R6 K - -L --nonewlines Don't add newlines to the ends of files# z8 p" y3 c( Z5 s# Z- k5 _9 m
- -O --morespace Use one more line for editing; a, y6 Y- P4 d7 T) c* Z( X
- -R --restricted Restricted mode. g2 S( F: P+ l1 I8 g
- -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
! w0 `6 [6 A( [; a9 e - -V --version Print version information and exit$ D- o3 w1 e( f& r" S. c# \: O
- -c --const Constantly show cursor position* F; S1 T: a: O7 w# n8 m5 a' J
- -d --rebinddelete Fix Backspace/Delete confusion problem% h6 A' J8 q" C
- -h --help Show this help text1 o- E9 A7 H5 x( a! [5 K- u' B
- -l --nofollow Don't follow symbolic links, overwrite
! R) [. R) y6 i! q - -n --noread Do not read the file (only write it)- M9 n" Q4 W$ g
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys2 h _6 {8 I- w# S
- -t --tempfile Auto save on exit, don't prompt& G4 u* q- _7 Z
- -v --view View mode (read-only). l' c" |+ f2 }4 _& _5 u, s- V( W
- -x --nohelp Don't show the two help lines1 R; e2 L" c8 s
- -z --suspend Enable suspension
6 E2 w. [" |/ o$ l+ { - root@F650A:~ # nano -V
3 l+ y$ c R# }- g% {( B; { - GNU nano, version 2.4.2
9 `1 W5 @; h9 ?) O; }% T; O - (C) 1999..2015 Free Software Foundation, Inc.# r; v, _8 z$ O; i7 o
- Email: nano@nano-editor.org Web: http://www.nano-editor.org/6 R! e5 N# {9 J8 h9 g
- Compiled options: --enable-tiny --disable-utf80 }* c( }! S' n3 Y) z" V, c+ w
复制代码- root@F650A:~ # dropbear -h& M- m* v! b$ ]: ~
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html. N W$ S0 T2 S: L' B* r
- Usage: dropbear [options]+ P* {! y- C t& V
- -b bannerfile Display the contents of bannerfile before user login; `% n' E( X- {- g. ^& L# Q" m
- (default: none)2 W# Z" f3 ~- B
- -r keyfile Specify hostkeys (repeatable)
+ V) Q" G# K# `2 x7 g - defaults:9 F4 q+ e( D; l
- dss /etc/dropbear/dropbear_dss_host_key, _! d: T J- j6 F
- rsa /etc/dropbear/dropbear_rsa_host_key
& _4 N1 T" E, K - ecdsa /etc/dropbear/dropbear_ecdsa_host_key
' r9 p+ o) M Q0 r; q. f - -R Create hostkeys as required- @" P: j5 \( X
- -F Don't fork into background
7 C* {/ f! ~! t - -E Log to stderr rather than syslog2 S& P+ }: ~1 i
- -m Don't display the motd on login2 F0 S, j1 b9 q4 u9 C. a5 b
- -w Disallow root logins
2 o& f5 b! [% P - -s Disable password logins
1 f2 o+ ^; D, i) T6 E$ h - -g Disable password logins for root
7 x6 x0 V5 k0 G - -B Allow blank password logins
0 s: j5 ~; \ j5 u. V# X# v3 J - -j Disable local port forwarding! T" P1 j2 {7 J a d
- -k Disable remote port forwarding- {- }3 W1 [( w
- -a Allow connections to forwarded ports from any host
& x+ |) k' ?, H! O. e - -p [address:]port# N3 B& Z: l" ^7 f, ^
- Listen on specified tcp port (and optionally address),
5 z7 k L% m# b" V) r$ I5 [" `$ M - up to 10 can be specified) L. o' }2 y- a% J/ Z) K
- (default port is 22 if none specified)
& I5 A& v1 z) ^$ Q% ] - -P PidFile Create pid file PidFile
# o8 a0 c6 d" j9 t9 w - (default /var/run/dropbear.pid)
' X! y1 e$ o. m2 z; e: L - -i Start for inetd6 l+ [7 l6 A8 C
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)7 O9 V1 A" I4 Y& e; E
- -K <keepalive> (0 is never, default 0, in seconds)
) M, Q Y7 h4 p$ t- g - -I <idle_timeout> (0 is never, default 0, in seconds)8 i1 X0 Z: [4 Z
- -V Version
/ Y; H! h: g# }: u
复制代码 - v) x' B4 ^% Q8 u
r6 M7 {& f8 P% B: o
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|