|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
7 R, F2 w" J( `; D+ s% J2 E( g
' X$ q3 ]' s* O) N# X' i- root@F650A:~ # /usr/bin/busybox5 p4 B% W5 c% C7 J3 D* v5 u
- BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
- I4 h+ @) U# p1 t f) o - BusyBox is copyrighted by many authors between 1998-2012.4 c' f# f; H3 U
- Licensed under GPLv2. See source distribution for detailed7 | |" `# Z/ z) {0 R+ d
- copyright notices.6 f. G; c9 }7 a- J' ?2 b" E9 ?8 T
- . N7 i# c3 m Y! g
- Usage: busybox [function [arguments]...]
' T8 S8 V- ^8 i, O, z5 b h h - or: busybox --list[-full]# Y+ x- p. t" I( @/ e
- or: busybox --install [-s] [DIR]
8 n' q& T0 j: ~5 K' v" s4 [ - or: function [arguments]...6 x7 q- K9 C e# O G6 N2 L% L9 @! K5 q
- ! F2 _" g! M. \- c/ [/ P; k1 o
- BusyBox is a multi-call binary that combines many common Unix; T7 q0 q5 p8 r# o
- utilities into a single executable. Most people will create a2 ?2 m4 s+ e3 ]# n* ?4 D8 k0 X4 P6 _
- link to busybox for each function they wish to use and BusyBox
/ W4 x1 x2 K* _+ _( u& { - will act like whatever it was invoked as.* B1 p% g/ \9 |, B- g' S* S/ }3 j9 Z
- ; R% w) P. ?/ i! B
- Currently defined functions:# T4 ]% L# W6 v5 P1 R7 G
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,
- c% y' a# v: A0 J+ p - bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,
1 ?, Z7 t% L; _) f1 H" }3 F0 a - cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
6 p- Y" R% Q. `) r - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,, U' ?! F* d8 z
- ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
. c1 o1 R9 l5 s; z; O - freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,
, C9 O( j# _" x, f - hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
% e) y, |7 i* [# R5 \& k - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,2 R) d4 [& s. I( L$ u4 e# x
- killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
& X9 d* N6 y. z% L - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,( g5 q% K/ e0 L p. l9 D
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
' O+ S* z- L. }% O9 J2 M+ f - modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,9 Q& l% n: O8 k* T% k0 m9 ?% p
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
, n W6 K* G6 F0 d' V5 ]( R1 a - poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
) m. r5 o, V Q. Z& W/ B- @" a - renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,+ ~3 g9 b# q2 K9 j
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,) {: [6 S0 X8 g
- sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,. y5 b2 k% d% \; U; D+ H/ q
- switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
2 r: F( U" G/ b2 x; { - touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol, Y/ ?: |- @ A9 e3 G
- ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,; s+ a6 `! P& N. c. P9 e
- uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,
# _4 k% Y# m& F+ H! f1 p% W - who, whoami, xargs, xz, xzcat, yes, zcat/ Q! N+ M |' w: s8 |
$ E$ n* \2 e8 K/ M3 m
复制代码- root@F650A:~ # nano -h
& I- B) w/ t: \9 y( |2 d! T- z. } - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...: J6 O7 n2 u- O: `. @! S: u
- * s7 ]9 G+ d' D; x9 Z( K" Y, x+ n
- Option GNU long option Meaning* M) p# X) b( N4 b$ X
- +LINE,COLUMN Start at line LINE, column COLUMN* B; \! K$ _: I2 O$ r! }
- -D --boldtext Use bold instead of reverse video text
7 |! |! |# U: _. n9 p - -K --rebindkeypad Fix numeric keypad key confusion problem, g* V! V' N. I6 b% C6 j
- -L --nonewlines Don't add newlines to the ends of files
$ D6 j8 t; a# y1 r" B/ P: E; ` - -O --morespace Use one more line for editing; |- h5 [$ \. s5 t j
- -R --restricted Restricted mode
( P+ k2 n# s- ~0 Z5 ^0 r B - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns* H! p% j7 g1 y0 n7 P
- -V --version Print version information and exit' U% x5 @) K7 X+ H0 m
- -c --const Constantly show cursor position
0 s" }% e/ s* B - -d --rebinddelete Fix Backspace/Delete confusion problem
Q! f2 B4 x+ ` - -h --help Show this help text
1 Z# z: l1 G" M* d - -l --nofollow Don't follow symbolic links, overwrite N% l( Y+ m- o8 z! |
- -n --noread Do not read the file (only write it)) H# ^( J7 b9 c* \7 R
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys
" u9 M" P: `6 O; s - -t --tempfile Auto save on exit, don't prompt' B% p1 i% G& ~
- -v --view View mode (read-only)
7 k8 q6 m2 i8 \- \& a W4 L - -x --nohelp Don't show the two help lines
9 {/ H6 ?7 W; n* C/ J! u - -z --suspend Enable suspension
0 d7 M8 b7 u( [6 e, z9 c- m) S - root@F650A:~ # nano -V6 _6 m$ f7 i) y# L
- GNU nano, version 2.4.2
b; l ^$ o! R - (C) 1999..2015 Free Software Foundation, Inc.+ d$ l5 M6 a9 G5 ?2 {( y2 J4 h5 p4 J
- Email: nano@nano-editor.org Web: http://www.nano-editor.org/7 c7 R0 E( u) [* x* W3 J
- Compiled options: --enable-tiny --disable-utf8
4 T0 L- Q# ~. K
复制代码- root@F650A:~ # dropbear -h
& x9 S! w( `) _4 [- x6 j- u) b" U - Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html
( X. z' S4 v' _- J, a2 ] - Usage: dropbear [options]
* P/ f' Y: m3 c5 Z o - -b bannerfile Display the contents of bannerfile before user login; m! u5 @3 U' d& S5 Q' Y# W3 ^
- (default: none)
+ _9 |5 R/ A8 d! ] - -r keyfile Specify hostkeys (repeatable)0 X! F5 t' R7 e" v
- defaults:
( K& M6 ?. s# t; ~% m; [# W, {* G - dss /etc/dropbear/dropbear_dss_host_key
9 ?1 z" [8 c) t0 P3 ^# t - rsa /etc/dropbear/dropbear_rsa_host_key7 n; Z' Z; d; |8 q0 v% n* v
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key
) J. C8 j, w) e2 m7 A2 {( Y* _- q - -R Create hostkeys as required
* u7 r* O, F2 h# l - -F Don't fork into background# x* G# s# T+ Z! [ r ?3 V
- -E Log to stderr rather than syslog' x) a) R% F5 s9 K: V6 ~ |
- -m Don't display the motd on login: }) G+ n) C6 [- k; D6 ?6 V
- -w Disallow root logins: z7 n# q* |. E s9 ?
- -s Disable password logins: j0 E* g$ A/ y( t
- -g Disable password logins for root
5 ?+ _% ]& H' C4 A7 y7 l. e+ j - -B Allow blank password logins+ L1 c6 T6 Z' a8 w, M
- -j Disable local port forwarding
, ^: M3 ]" _) C& e6 n$ x) k3 Y - -k Disable remote port forwarding
, H$ {. ~' H | - -a Allow connections to forwarded ports from any host
$ e8 {1 t) H0 L o$ T6 C B+ q) O - -p [address:]port
5 _! q+ b- N9 g$ O - Listen on specified tcp port (and optionally address),9 b! ^4 `8 H w( ] O+ f
- up to 10 can be specified
$ }4 r, j0 m" m! K' w' [ - (default port is 22 if none specified)
' }9 r* O( s9 z3 ` - -P PidFile Create pid file PidFile
* N" L" D7 ]+ e2 O - (default /var/run/dropbear.pid)
' r$ d* X2 G `$ v5 T - -i Start for inetd
! U+ C) H. X5 H$ b- w& {3 f, V8 M- A - -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)0 [" D; a- d7 C& A8 J8 o& S4 v
- -K <keepalive> (0 is never, default 0, in seconds)( S- j5 |/ I) G
- -I <idle_timeout> (0 is never, default 0, in seconds)
% ]' O" n* F* Y8 J0 k - -V Version" s( G: F- j- c' B* P
复制代码 G9 S+ |- U) ~9 }
- y& Y& @4 I' O+ K2 z |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|