|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
5 [( X9 @& m/ ^5 O
9 @& L2 g/ y: k9 _% L1 x- root@F650A:~ # /usr/bin/busybox" ]# l( [' J: n7 |2 b( J, [
- BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
1 Y) H; c+ O, e$ C5 ?3 w9 b4 A - BusyBox is copyrighted by many authors between 1998-2012.
6 i {& Q6 E$ @3 N7 T T: V - Licensed under GPLv2. See source distribution for detailed
" A7 m0 p6 A3 `1 i0 t+ b - copyright notices.2 c6 X+ m1 {- k5 A9 F& J D. j
- 5 i% `1 ?) j$ A& v
- Usage: busybox [function [arguments]...]7 l! n2 H/ D2 Q: m
- or: busybox --list[-full]+ N# P7 Y# t$ H3 t" N! G
- or: busybox --install [-s] [DIR]; v6 C& ~9 t& e8 l
- or: function [arguments]...7 S1 o$ S# V- a2 L, b R4 Y- C
) B4 V; p, b4 C/ t- BusyBox is a multi-call binary that combines many common Unix* W4 c3 `- r* `4 p
- utilities into a single executable. Most people will create a
! K! p; {8 V6 N - link to busybox for each function they wish to use and BusyBox0 c4 h0 r- f4 l, P
- will act like whatever it was invoked as." g) f/ }5 Q' `* G& J
- * G9 K( x4 ^, Q1 \4 u+ T5 u/ E2 y
- Currently defined functions:# P& F' U- u( |9 w
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2," L# n. V' y' P T
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,$ o6 K3 S- E2 j4 v
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,9 b8 t- w, [0 m! m% J2 x
- diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
+ a) {. x5 r7 _. M- E: U - ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
9 E; h7 M3 Z N: J/ ] - freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,7 G- ?$ J! w; J) `5 x
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
% D& r, K" _( y+ H3 @ L1 a: L - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,) L! ~; f. q! v- J5 F0 Q
- killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
% q2 ? h3 R3 C - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,6 t, a( ]% |) p/ V# e
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
8 M0 k8 S( E2 G3 Z9 | - modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,) R1 {3 N7 D* `" i& M8 E
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
8 l8 L8 t5 b6 J; f' e - poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
" X3 G2 X2 T6 X& ? - renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,
7 K {: }; _. v& J; ^- ?+ i* P - setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
9 y) L8 r; d% W2 |! p, U; w1 K0 v - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
' ^! }4 v& }' [$ r4 @ - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,- J( C4 ~6 s/ ~0 m" y3 F) A7 ^
- touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,. q3 \6 c$ m1 W
- ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,3 _, e/ k- f! m; @* h0 K/ ^! x* q
- uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,. R8 ~' m9 O6 o V$ y. l4 K* _
- who, whoami, xargs, xz, xzcat, yes, zcat
1 V% L' T) v( Q: @2 w
* }4 d( o$ X) J* [1 }5 d# f
复制代码- root@F650A:~ # nano -h
3 y0 I: |6 ^. G4 w2 C, S8 n - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
O4 Z: _1 y6 v) L( y$ ? Z
6 ?& L! B5 N7 ~4 t! o2 }# ?- Option GNU long option Meaning
* v; B( m: Q( u - +LINE,COLUMN Start at line LINE, column COLUMN
9 F Q4 F3 z) G) G - -D --boldtext Use bold instead of reverse video text
8 ?- j" [& k% \% ]: m - -K --rebindkeypad Fix numeric keypad key confusion problem
0 D. h- n/ M/ W/ e8 l - -L --nonewlines Don't add newlines to the ends of files# ^/ C, B4 s) I; o
- -O --morespace Use one more line for editing6 L3 Q( ?) q. v2 C5 ~; o
- -R --restricted Restricted mode
0 ^0 E% b3 H0 q2 M - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
3 L! Z- k( c1 G: u; D# r - -V --version Print version information and exit1 ^2 Z6 @9 ]# r$ ~
- -c --const Constantly show cursor position! K8 E0 ], x6 t$ c
- -d --rebinddelete Fix Backspace/Delete confusion problem- ~0 x9 e, a9 s8 x' W! w1 W- T+ @6 C% H
- -h --help Show this help text
4 B1 V9 H f6 b* w - -l --nofollow Don't follow symbolic links, overwrite# Z6 \* Q+ k/ _3 E8 s; t
- -n --noread Do not read the file (only write it)
. `) Y9 d: J9 F - -p --preserve Preserve XON (^Q) and XOFF (^S) keys: A* V& X# V% z0 q/ A a6 _" {% g
- -t --tempfile Auto save on exit, don't prompt/ }; b0 B+ b( f; V: J# l: ^. u
- -v --view View mode (read-only)- g, S. @5 l5 {7 R1 Z
- -x --nohelp Don't show the two help lines
* d1 W3 b$ ~7 s - -z --suspend Enable suspension
8 ^ y- x# x2 F+ K - root@F650A:~ # nano -V2 ^3 T0 U7 ~8 E3 k" ~
- GNU nano, version 2.4.29 l% o' q0 _7 _/ `( E
- (C) 1999..2015 Free Software Foundation, Inc.
5 ]& W) r2 J8 i2 k9 \, S - Email: nano@nano-editor.org Web: http://www.nano-editor.org/1 G- v- b5 T0 ~' t
- Compiled options: --enable-tiny --disable-utf8
% F9 M6 L7 w0 P& i
复制代码- root@F650A:~ # dropbear -h
) X- f( Z8 P0 d, ]$ L% a! W - Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html, J8 s5 t8 Y: @+ W
- Usage: dropbear [options]5 u# k1 L! I, Y% T2 J" j8 U
- -b bannerfile Display the contents of bannerfile before user login @# Q! _; H( P$ X
- (default: none)
/ `& x% Y9 m! H' [ - -r keyfile Specify hostkeys (repeatable)
4 s! w; n8 G. M2 _2 I3 C - defaults:/ S" K3 ?4 ?% m0 K$ n- y7 z
- dss /etc/dropbear/dropbear_dss_host_key: r U2 D) ]* J
- rsa /etc/dropbear/dropbear_rsa_host_key, u0 M- f8 l! i% J" [" ?
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key$ b! m$ O) g6 c1 H9 y
- -R Create hostkeys as required* ~8 L7 [. Z& O& Z& J
- -F Don't fork into background
. r( I+ P+ a2 s5 `! y - -E Log to stderr rather than syslog
& I# B( o$ D! ^+ b - -m Don't display the motd on login4 A& |$ a" i$ h3 X8 u! J
- -w Disallow root logins2 b u9 Z- ~. z
- -s Disable password logins
0 j! O: ~- l8 N) w - -g Disable password logins for root* |8 M3 ~# \+ j! z& ]
- -B Allow blank password logins
9 e9 ?) q0 s6 l, W# S* U9 j - -j Disable local port forwarding8 K8 f- j7 D$ {( z7 T6 z8 F! Y
- -k Disable remote port forwarding
3 ~# Z# f! c/ M - -a Allow connections to forwarded ports from any host7 ~, u5 H' ^" d7 f& F# l
- -p [address:]port1 v" K' ?. g: S6 A4 y2 {
- Listen on specified tcp port (and optionally address),4 ~& l ^5 g6 n( R1 ^9 m
- up to 10 can be specified
' [5 z/ w$ y& v* x, V! I( V - (default port is 22 if none specified)
) |; c' w% X& u, D - -P PidFile Create pid file PidFile7 g% H7 k% n3 I+ S1 n# s% u
- (default /var/run/dropbear.pid)& I! B& K. V) Q' L$ s) B
- -i Start for inetd
8 J* `4 j4 e2 B, x6 Q3 N" h b' b# W; O! ` - -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
$ h0 N! E* x9 q2 {( L - -K <keepalive> (0 is never, default 0, in seconds)
* ~) w6 P5 b7 \- ~9 d - -I <idle_timeout> (0 is never, default 0, in seconds)
+ f* s" x F+ p' R S - -V Version0 v9 \) t- Y! {
复制代码
- t2 x8 p4 \, ] |0 A. \
& h& K8 b& l2 I |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|