|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
" ?: N4 Y8 k+ c4 R7 W& ?/ v0 V
8 V$ Z2 u5 ]2 t" I e4 X9 ]- root@F650A:~ # /usr/bin/busybox
5 E& |$ t8 z6 v: n& H/ T - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
5 g* p4 I0 Z c% M- S - BusyBox is copyrighted by many authors between 1998-2012.- x) Z9 l" A+ n, d
- Licensed under GPLv2. See source distribution for detailed
6 S" P* l1 W h$ [: J v9 A( @ - copyright notices.
. B; g# s" K4 s9 f+ u: o - n% T; O: l4 s3 t9 G0 Z$ x$ |
- Usage: busybox [function [arguments]...]+ T; d2 w. r5 i2 a7 c
- or: busybox --list[-full]
6 K6 P/ C- c0 z7 m - or: busybox --install [-s] [DIR]8 R% |4 S$ ]1 D2 N
- or: function [arguments]...
) M- I6 w) P, N+ S& w4 b
5 F& c6 h$ |+ J* X1 w) K3 c# e4 t- BusyBox is a multi-call binary that combines many common Unix
2 p7 ?" z" B& i6 k$ V - utilities into a single executable. Most people will create a' r% E6 g! a, I5 V9 i! z, T& g u7 \
- link to busybox for each function they wish to use and BusyBox
$ {& Y" p! l: ~2 ]. M5 L - will act like whatever it was invoked as.
, c1 q8 L$ B" C+ M. T; T
$ Y- {/ o0 c2 ]. \+ S6 T- Currently defined functions:/ c9 I9 i# }! u5 r- Z
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,1 r$ T9 m0 n8 X+ m7 U) ]/ I6 Y4 D6 g
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,! ]% A3 t( c1 Q* y$ ^. A
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,8 P" g# @" b. {6 Q7 \ K7 p
- diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
. T: U2 g$ [) e& U' ^ - ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,' y8 Z! t5 Q; d2 u9 }
- freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,
9 I( M. X$ w) ^; J* M8 p5 t - hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,. ~; m. x7 K- X
- install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
& r5 A3 c' o. S - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
/ ^/ `5 d; Z/ s- Y! p - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,
+ Y+ ~0 j4 j P% C' B3 X5 O - md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
' \4 f" Q# I4 z) p* O0 U, [ - modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
a1 U* X1 S B9 Q! W - nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,6 {0 f. l8 c& ^" p$ y7 k( r8 t9 \$ a
- poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,1 |) x& h% F: v& ~
- renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,) z& M, H) X; f7 ^$ G! J1 B
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,7 P( J0 l. v. m! U, G
- sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
! Y8 p6 \! v# c4 e - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,4 t% G! h6 b' q
- touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,, G3 G; q# H' F9 g9 |4 n- G; ~
- ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
! s" [0 `' a4 R" x7 g - uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,
8 _: d2 i0 V; y* R$ `; l. m - who, whoami, xargs, xz, xzcat, yes, zcat
7 F: z) n8 [ c
8 ^& X9 ^1 o6 f+ f. b" [& \
复制代码- root@F650A:~ # nano -h
+ a7 U. X, m2 p7 B; m2 ?) N | - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
) u# a3 k+ v+ J6 _6 N+ s0 k
& |4 I" F' m' U- Option GNU long option Meaning5 l, g7 |' l( G7 _& s, T( \
- +LINE,COLUMN Start at line LINE, column COLUMN" m3 O8 f' l) c1 a0 J" p; _, D
- -D --boldtext Use bold instead of reverse video text: h" _$ e; s! z9 n
- -K --rebindkeypad Fix numeric keypad key confusion problem
4 k8 K [; @) b# T( m4 h - -L --nonewlines Don't add newlines to the ends of files! f7 m( X. h2 _- _( [6 F& M8 x
- -O --morespace Use one more line for editing
) w9 y1 t- F! g4 F9 u& _& k$ ` - -R --restricted Restricted mode
) A5 ?9 ?- z4 E' M - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
9 X! u+ t2 B9 p6 q - -V --version Print version information and exit
* I& C: ]0 o6 e - -c --const Constantly show cursor position
& u/ v- m( E% H0 g" q5 j - -d --rebinddelete Fix Backspace/Delete confusion problem
7 Z& e6 a7 C4 F* g - -h --help Show this help text
/ j" M- y- D+ k1 \ - -l --nofollow Don't follow symbolic links, overwrite( p6 ?+ x8 v% S. k9 |) ?/ {0 p
- -n --noread Do not read the file (only write it)6 O! s* U$ ?# z) i
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys- C# D$ q9 J* o5 {
- -t --tempfile Auto save on exit, don't prompt
4 t4 {) |# A" t5 e$ o - -v --view View mode (read-only)
( ^6 n0 c, R; b - -x --nohelp Don't show the two help lines
9 g0 _: \" M) n; ], p# p2 R y - -z --suspend Enable suspension9 }6 O( ]$ O! p0 D
- root@F650A:~ # nano -V4 u. `, U" p, `; N: j
- GNU nano, version 2.4.25 V" _3 T$ `$ j9 s* T6 c$ j; [
- (C) 1999..2015 Free Software Foundation, Inc.
: U9 }: }6 v. D* v: N) E - Email: nano@nano-editor.org Web: http://www.nano-editor.org/! s6 V3 ^$ |" p) Z
- Compiled options: --enable-tiny --disable-utf88 W8 m* {& m6 w* a, T* p
复制代码- root@F650A:~ # dropbear -h' V [. r2 K+ }$ c" ~) x
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html
h7 q) V, S6 u+ E) z5 V9 a - Usage: dropbear [options]
( ~5 s- B% K5 I. i+ x; c - -b bannerfile Display the contents of bannerfile before user login
6 A# g% K& j. {0 q - (default: none)
, i0 O) ?9 A: O4 O/ M0 t - -r keyfile Specify hostkeys (repeatable)
" T. s- l4 n, c6 q; g, Z& @$ B - defaults:
* K- \. q. V9 _* M4 H - dss /etc/dropbear/dropbear_dss_host_key; _- `/ g. X Y
- rsa /etc/dropbear/dropbear_rsa_host_key: n$ d: g* l3 ?1 G8 c
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key
: a! }; X8 e5 V5 A. D% L6 R - -R Create hostkeys as required
! o9 O9 e! k/ J; U1 N5 a: R - -F Don't fork into background% }7 E8 R7 I# O3 L! G6 s
- -E Log to stderr rather than syslog
) g: P; Z2 o# m7 |: o; l! v5 I! }- u9 t& s - -m Don't display the motd on login% I" |+ s4 x6 M
- -w Disallow root logins
# x& p. V7 K9 k - -s Disable password logins, d$ j, A! c. C+ b6 @9 @
- -g Disable password logins for root
, _) D# W! B8 M; c - -B Allow blank password logins* d" I; x! j6 C. w$ A' f
- -j Disable local port forwarding
: j: @' [7 D) N% c z - -k Disable remote port forwarding
7 G" [1 D- y' \# b6 i" O - -a Allow connections to forwarded ports from any host
4 g v1 z7 |. r5 |: V8 F - -p [address:]port$ L9 s+ h$ @5 H& Z% N( J* d
- Listen on specified tcp port (and optionally address),
; z* E9 o7 \5 N& w. i2 l, i - up to 10 can be specified
% e, y& j, \. n# C9 }! `) W8 e; C2 B - (default port is 22 if none specified)! F6 O! W5 r& D; n! A8 [+ W
- -P PidFile Create pid file PidFile1 [: ~. s1 W' b7 {$ n
- (default /var/run/dropbear.pid)
3 `5 w0 y! t3 \5 Z - -i Start for inetd& f" s, r5 r0 O7 e+ T
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
, x4 m8 O# r0 d- ?+ C - -K <keepalive> (0 is never, default 0, in seconds)$ Q1 l. A% c$ M" s% x
- -I <idle_timeout> (0 is never, default 0, in seconds)9 i" L" G" }. h8 `
- -V Version
- P. Z1 [1 F2 P2 v! I' D
复制代码
0 p/ y4 }2 R; k4 Y9 I6 t2 f; }! }
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|