|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。 U/ g2 W$ o0 L2 ?0 z
# ?5 e8 \3 D& w0 P- root@F650A:~ # /usr/bin/busybox- o3 b; w. J7 M2 E
- BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
1 v& D c( N. j$ C2 d3 c- Q - BusyBox is copyrighted by many authors between 1998-2012.4 x% n4 i8 K$ a Q) Z( h
- Licensed under GPLv2. See source distribution for detailed) T$ f; S: |8 T
- copyright notices.& R6 `4 U) T" m
6 \* c- t) M7 B: v6 W8 Q- Usage: busybox [function [arguments]...]) {. p$ f- s: b- F' A( u, r. B& ]
- or: busybox --list[-full]/ \# X3 J. f! L1 Q& x
- or: busybox --install [-s] [DIR]- Q5 r/ a2 z5 F0 }5 ^7 t
- or: function [arguments]...% Q# x) V/ ^* z0 d- a; c6 H
- / x. h6 M1 S; F, o: X* M( ~1 M
- BusyBox is a multi-call binary that combines many common Unix2 n! \( {3 |- z2 K# J9 O
- utilities into a single executable. Most people will create a* N6 G* d: W. j' K& t' f/ [( V$ F
- link to busybox for each function they wish to use and BusyBox
! K z" @# q m* z - will act like whatever it was invoked as.+ o' }$ B& o, {/ ~
7 ~0 B4 U! M6 s% S6 B- Currently defined functions:
7 t* [8 Z# y7 F - [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,. x) J( O. x3 B" Q$ j
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,6 [) H% E- G' O3 c% M4 S& O3 n$ d
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
- U. z! v6 z5 `3 i - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env," m# ^5 o( d* G% K' q& x8 c3 y
- ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,, z$ L$ G! P/ |7 q# D
- freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,) }8 w4 c3 }, b
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
6 w) l+ B. ?( [; x - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
. t( H' F4 F) B# d" R7 J - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
# o4 s. [6 `7 G) W# R - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,/ J: `( p0 ~& t0 O" H2 T' S
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
4 W) S g `" E+ p - modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
1 q! T4 l6 h) d6 X% \ - nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
' E' m- U/ W+ @/ L$ ` - poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,' m% L/ v L/ j* ^5 k6 E
- renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,
/ x- b& x4 C+ I. \% p+ C( p - setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
- f6 L* E6 P# w+ E - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
* H2 k0 X9 M r; L N' V& D - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
1 J1 d, n9 M+ i I - touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol, h3 t' ]4 K" i# [- I! [
- ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
7 @! e7 L# u& V1 E - uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,
, M% r1 t+ B5 F' V9 S9 G - who, whoami, xargs, xz, xzcat, yes, zcat4 M+ w2 w# x. U1 ~
/ ]9 U+ m5 u( U1 o9 O
复制代码- root@F650A:~ # nano -h
" i( }. }" C- T8 B7 m - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE].../ c1 o" K' m S# r- }9 H
# Z* i: ~4 H/ t2 o( v. z7 f- Option GNU long option Meaning
; Q4 m g& `3 q) a - +LINE,COLUMN Start at line LINE, column COLUMN
+ A* ]# `/ J3 e5 ]2 _, n - -D --boldtext Use bold instead of reverse video text2 w& G r: K1 R/ k
- -K --rebindkeypad Fix numeric keypad key confusion problem
; A9 X+ f( E( T8 ^ - -L --nonewlines Don't add newlines to the ends of files2 s# s }$ R+ e
- -O --morespace Use one more line for editing
# @2 k: p; M& m5 t - -R --restricted Restricted mode: V# S6 p, E9 V- m! P5 A% m0 c, ]
- -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
% p+ A3 b! Y+ o1 [9 Q$ t; g( R2 [# z - -V --version Print version information and exit- \9 r9 l* ~( j- G5 I. c* r
- -c --const Constantly show cursor position" e0 d% H9 r0 k
- -d --rebinddelete Fix Backspace/Delete confusion problem- m* \- o1 M- Q9 u* ^( n8 S% m
- -h --help Show this help text& x& P! @5 V7 J- U# s
- -l --nofollow Don't follow symbolic links, overwrite& h2 d3 K3 u0 x# p9 n( ?
- -n --noread Do not read the file (only write it)% d& n$ l7 \. C
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys$ g) u1 U( I. ?9 U& g
- -t --tempfile Auto save on exit, don't prompt& ^" Y: Y0 |2 a5 t
- -v --view View mode (read-only)" D, _! n _! d$ M
- -x --nohelp Don't show the two help lines; j3 W( U. N0 X# B9 m
- -z --suspend Enable suspension0 m3 d9 n6 ^ {6 |* I) ^9 y2 B
- root@F650A:~ # nano -V
; E4 X# g( {- W. i! O - GNU nano, version 2.4.2& q Y- d/ a8 D3 |
- (C) 1999..2015 Free Software Foundation, Inc.
* t" q: o5 B: M6 w" \ - Email: nano@nano-editor.org Web: http://www.nano-editor.org/
6 T; \6 \2 T/ y* S; ^ - Compiled options: --enable-tiny --disable-utf8
E; g" |4 d. a7 Q0 x# Y1 v
复制代码- root@F650A:~ # dropbear -h
& E# g* E1 O) x* |" y - Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html! d! g" i( n" C7 Q- r" u
- Usage: dropbear [options], }5 X4 a' H" i8 { _, D
- -b bannerfile Display the contents of bannerfile before user login
( W1 g6 s, C+ A8 T6 H" ~' d9 k- P - (default: none)
8 x! W, B2 _. M; I# S) ~2 ]$ ~3 v3 t - -r keyfile Specify hostkeys (repeatable)
( U& V5 i: K3 m& }8 Q - defaults:9 n% y3 J4 y* e) `
- dss /etc/dropbear/dropbear_dss_host_key. n) |4 V6 A% P6 ^( `
- rsa /etc/dropbear/dropbear_rsa_host_key5 }* y+ J' c6 p
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key
/ c3 `" L" W7 b/ f' o( y# {5 J* v - -R Create hostkeys as required( A+ W, h+ v& p' h# B7 L
- -F Don't fork into background
2 q) Y* ~* _, I7 e" S - -E Log to stderr rather than syslog
* K2 y ]+ R+ g# K& s& n - -m Don't display the motd on login; h H$ A& {/ h. z
- -w Disallow root logins
6 |" s+ b9 U% E0 j- a8 T - -s Disable password logins: |4 O1 C* i( B
- -g Disable password logins for root
" x2 t' ?1 ]) b: v# }+ g - -B Allow blank password logins3 B0 O: d' }4 V3 e* O8 o
- -j Disable local port forwarding( s8 g% f2 I8 Q4 B
- -k Disable remote port forwarding8 U; `. Y0 \1 Q8 f4 t7 G- P
- -a Allow connections to forwarded ports from any host0 `% Z2 o: m2 b
- -p [address:]port
6 L* L. `" X# n/ D0 C3 F - Listen on specified tcp port (and optionally address),
# _2 E; m: r3 G; S- J- ?5 C$ ]% M - up to 10 can be specified
! i1 T8 c0 L7 s5 w; A - (default port is 22 if none specified)2 m7 C, n% T, |( Q" U% ]
- -P PidFile Create pid file PidFile/ Z0 Q7 Q5 A- M3 k+ W% w! ?
- (default /var/run/dropbear.pid)
; H: K: q0 n1 t9 n - -i Start for inetd( H# F: P+ u4 b0 ]+ Q5 I
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB); o0 B& w1 j( c; z+ @3 K, z- @
- -K <keepalive> (0 is never, default 0, in seconds)9 e8 D3 k# N- D( E6 z _
- -I <idle_timeout> (0 is never, default 0, in seconds)
+ p8 s9 _" D: v! f/ j# o" B7 h' n - -V Version
( x3 a4 d: K6 V' \, I
复制代码 & ~ c: |. B) q6 j8 V: A. e
6 w2 \1 F$ y9 O0 Z+ X2 b |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|