|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。' S% T: U* X; S, A# d+ D! W
& N7 y* X& O5 U( R1 |# R# `- root@F650A:~ # /usr/bin/busybox
) I6 q c0 N0 L3 O1 E1 d - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.$ l9 b% H: q9 s! T; x y0 @
- BusyBox is copyrighted by many authors between 1998-2012.
^4 m- Z8 I4 _. L& O - Licensed under GPLv2. See source distribution for detailed. U! r% V8 \2 s! I8 } G
- copyright notices.8 Y2 `. P" s, O4 J
& g% |9 [% U8 j1 y# \/ a% _5 T- Usage: busybox [function [arguments]...]
. ~3 w6 I: t& l K# X - or: busybox --list[-full]+ y/ W) B# |) r% C
- or: busybox --install [-s] [DIR]
4 u# K7 f/ l4 w6 D/ @* | - or: function [arguments]...
5 a/ S s5 F5 o
+ M; {- m4 ?9 P2 G- BusyBox is a multi-call binary that combines many common Unix
& l2 n3 p! \, k, ^# x - utilities into a single executable. Most people will create a
' d3 q- R! B" q- H* z0 V+ q - link to busybox for each function they wish to use and BusyBox
8 g8 \: U8 ~. c" f1 z/ P4 X9 k+ G7 [ - will act like whatever it was invoked as.' E( F, S% O: b( E7 a* q3 a
) A ?) s* B$ @! c! P- Currently defined functions:
+ z& p0 A' \# Q- O9 A3 ^ - [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,' O$ n+ x9 A9 v# F( t
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,: q0 k5 A- p9 k4 P( @
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
0 G u& Y3 n* A; P3 O - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,7 i4 q' a; ^* ?' b
- ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
' e+ I2 e$ i% [$ F- i! x. Q- E; i - freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,/ K3 n" B8 \7 r2 b( b* l
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
% d: H+ }$ L% q0 q- H - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
, ]- j; O0 m1 |# G - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,6 S1 b! E& M" Q6 e
- login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,5 g; K' N' {1 h! k9 U# a
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,# l) E: b! P3 x# C! t
- modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,; _ c% V" C* w0 i$ n5 l
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,* ^' t2 Z3 I: L6 K8 g
- poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
" T" ?7 t8 j. [* X2 ` - renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,* i( n h( d: {3 c
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
! w7 U3 F* d7 J& q$ u - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,% B; Q# B: w% v, q2 \. s; p( o' a
- switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,2 i) ^" q. W! ?6 }. X
- touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
\; [( ~7 x2 D8 ]7 d5 Y V - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,! q2 O$ n/ b6 ~( R# N
- uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,
' F: Z2 w8 x9 O4 A& k$ J) b - who, whoami, xargs, xz, xzcat, yes, zcat$ t7 ~( n8 [5 S! {
- 1 s# d% v8 B- C! A8 c5 P( i8 F
复制代码- root@F650A:~ # nano -h3 O0 F) o4 \5 v* f
- Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...: F8 B6 a4 m9 V" ?- L
- 3 T# a4 S- p! R. _
- Option GNU long option Meaning$ q2 z: f4 E/ P" d2 K" t8 f
- +LINE,COLUMN Start at line LINE, column COLUMN! b4 W, I% g5 t9 F5 v0 D8 F
- -D --boldtext Use bold instead of reverse video text: a' c3 e$ _( O `8 C" q6 l
- -K --rebindkeypad Fix numeric keypad key confusion problem" e# T: d. C S0 l! E8 p
- -L --nonewlines Don't add newlines to the ends of files) l8 n/ X% t7 b" R1 u7 ]
- -O --morespace Use one more line for editing
; c1 t" \( s! S5 \8 a9 l. ` - -R --restricted Restricted mode
$ q0 T) s5 y& |+ [2 |5 h( o - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns! M& O- q0 v# Q- M) d; s( Q( U. P
- -V --version Print version information and exit
9 }+ h4 \- R. n1 y - -c --const Constantly show cursor position
v8 F. N7 ]1 X/ l# i - -d --rebinddelete Fix Backspace/Delete confusion problem1 Q- t! W0 o3 w
- -h --help Show this help text
/ q( D; [7 D: E3 K( V - -l --nofollow Don't follow symbolic links, overwrite: d1 a) ^; f* E( N
- -n --noread Do not read the file (only write it)+ p0 g0 s+ n$ B. A" U) v1 A4 t
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys
' U, c3 `8 ?- t1 ^ z8 k: C - -t --tempfile Auto save on exit, don't prompt. Z# y5 W* P5 d2 N0 B1 B T* @1 }
- -v --view View mode (read-only)
, ?' a d9 K/ L- |$ i. o - -x --nohelp Don't show the two help lines
. F# C* ?4 h, L; G) m2 L - -z --suspend Enable suspension
/ A: I) B$ h5 `/ c7 ?: | - root@F650A:~ # nano -V" ^$ `) _9 s5 G! r# m
- GNU nano, version 2.4.2; m0 j; {, T% i5 j
- (C) 1999..2015 Free Software Foundation, Inc.
3 l, T" S5 ?0 {. [ - Email: nano@nano-editor.org Web: http://www.nano-editor.org/
3 ~: ^: B0 a2 `7 V - Compiled options: --enable-tiny --disable-utf8: u/ X- L4 }& e6 n5 d
复制代码- root@F650A:~ # dropbear -h9 j, N# c8 ]3 w6 N* t$ p, {+ K+ p
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html! R) F' S4 b1 ~. }
- Usage: dropbear [options]
. q# Y7 p- D) n* W$ b - -b bannerfile Display the contents of bannerfile before user login
' S3 j2 V8 o. k( @, o - (default: none)
- U2 Q+ n8 b4 v# G - -r keyfile Specify hostkeys (repeatable)
8 e8 Y- x8 Q# w) H2 ] - defaults:! T5 B0 ^; _+ D# f* M7 Z5 c
- dss /etc/dropbear/dropbear_dss_host_key
* I5 v' ]# K; r3 B* Z) x" r2 z6 E( | - rsa /etc/dropbear/dropbear_rsa_host_key7 \2 n1 M& f% w5 E7 F9 d6 z$ O2 d
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key& a* ]% l1 h5 A- W
- -R Create hostkeys as required) |/ v. w' Q' W5 k) F
- -F Don't fork into background
% ?9 C$ a6 p0 r8 X, z* M& s- ] - -E Log to stderr rather than syslog; B+ T: V8 l. L: y
- -m Don't display the motd on login
7 x5 O$ G- J1 q6 \9 Z7 _, S - -w Disallow root logins7 Q$ N3 O5 l/ q3 Y4 Q5 b
- -s Disable password logins
% v; X/ e& Q9 m' M - -g Disable password logins for root
2 B; ^2 ]/ N7 k- M: ` - -B Allow blank password logins
9 V6 n& E- b4 y7 Y- `5 ]2 @' h - -j Disable local port forwarding/ c) a: o* N: N! U5 Z6 r' h0 J
- -k Disable remote port forwarding3 C; z3 n3 ?. u" T0 g
- -a Allow connections to forwarded ports from any host- P1 S' ]+ @- O! D( g
- -p [address:]port
2 S; Z% k% n6 ]3 w - Listen on specified tcp port (and optionally address),
- t% x. P5 C. @5 \ - up to 10 can be specified
" O2 T5 O6 J& z - (default port is 22 if none specified)6 g+ W$ u6 Z: l& u$ c7 t
- -P PidFile Create pid file PidFile0 N0 T2 d I( d/ W A
- (default /var/run/dropbear.pid)3 ^+ r: m) r7 r, {, x z( \8 e$ Y+ p6 I: R
- -i Start for inetd/ d7 i# I8 o$ l; Y6 m5 o' F
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
! b5 i) d, ?: M - -K <keepalive> (0 is never, default 0, in seconds)
6 { [/ [, u+ Y - -I <idle_timeout> (0 is never, default 0, in seconds)
+ O7 Y0 l. ]2 q; p - -V Version1 a3 R0 v S6 c+ U/ G
复制代码
* y2 Y; ?9 w- U
! u5 N7 e! [" }3 {" V/ t. s7 s6 v |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|