|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。' \8 R9 O; z: Y% j+ L+ P
) t2 V& @# R1 }
- root@F650A:~ # /usr/bin/busybox
# h+ K! B4 w' D6 u7 E - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.) ?- @. J) R# R* ~" H( \$ ^5 Y
- BusyBox is copyrighted by many authors between 1998-2012.( O# H( e9 R' e7 E& u) p
- Licensed under GPLv2. See source distribution for detailed, `% S- f9 o5 l
- copyright notices.
1 K) @3 U2 G" w+ J* l: m
" u' W4 S+ f) R% C0 K( n2 u- Usage: busybox [function [arguments]...]
3 C( K+ L- L: l+ J/ X# G8 { - or: busybox --list[-full]
2 j0 l7 A+ _+ n S; ~& P - or: busybox --install [-s] [DIR]* Z, k* |9 ~) L4 K# E, e
- or: function [arguments]...
; q# B5 k2 w2 _% n) u - : }* \# x1 ~9 `$ H4 A1 P+ ]9 Q) u
- BusyBox is a multi-call binary that combines many common Unix
. G2 V# z3 P- Z+ P - utilities into a single executable. Most people will create a
/ N8 P8 P f' k! T: b) p4 ^' V - link to busybox for each function they wish to use and BusyBox
; u% r2 Z5 v8 p) P8 l - will act like whatever it was invoked as.
0 Q8 q* H+ M1 q" E0 r) T - 9 m8 i$ x# B2 f7 {9 H9 |
- Currently defined functions:1 F+ Q3 K4 @' v9 I+ u( S) Y- N* c0 z
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,5 t. c; R. i: d X0 P+ I
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,
1 X0 Y, k. l" V3 J - cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
( v8 S; ~+ z7 A, I J0 i- n+ t6 j - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,8 M5 I! o3 X& |8 J1 n% l# i2 I
- ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free," d' e# u& A5 n, \0 f) j) \/ |2 o
- freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,
. {- k$ T0 M& b( M# @ - hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,1 D$ j4 b: _% [6 U
- install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,; } R6 A) w" _7 w, n; e$ _# Y, u) Z
- killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
% c, u* I* h% H7 g: c - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,1 R/ v6 h+ P. [* F
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,+ _4 i# I w- y/ N- L0 R( N
- modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,: h3 Q# n4 p; C# L4 n( g/ A
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
* p2 Y- D- J) } - poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,; L2 t: d* h' Y. _4 A/ M
- renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,
5 C: J0 Z9 w$ W7 |' M3 C0 W; X/ D$ V1 m1 v - setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
1 s& N! k0 q$ k3 d9 l - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,% t$ r2 F! l5 S! o
- switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,6 P/ M7 U& m6 Q) {) P
- touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
9 n. v: j+ ?4 N, y% W - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
# Y3 Y2 Z, q! L( B* v( \, I - uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,
1 j1 G f# y, U0 B - who, whoami, xargs, xz, xzcat, yes, zcat
3 B2 r& f: H1 N& N
" Y' h. ~0 T* G, k8 p
复制代码- root@F650A:~ # nano -h
6 h; C0 N1 S1 l& x C - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
' s0 e3 j* r- R
: o) i4 v, u+ S. G- Option GNU long option Meaning
9 u7 ^( K+ s% H) H: ?! [4 ` - +LINE,COLUMN Start at line LINE, column COLUMN
4 j0 _( t/ ]) p7 ^ - -D --boldtext Use bold instead of reverse video text. I+ |2 U( {" @. d) t- S6 L; A
- -K --rebindkeypad Fix numeric keypad key confusion problem- M3 Q: X* V4 K6 J$ k) |4 t: p+ `
- -L --nonewlines Don't add newlines to the ends of files
. s' K$ O2 ?" Y - -O --morespace Use one more line for editing$ X# V7 m* V& E1 Y' J$ l8 C
- -R --restricted Restricted mode, \0 r2 S7 L4 g4 y
- -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
1 S. \- z- H+ a& J3 z - -V --version Print version information and exit
5 y, E% K$ Q7 B - -c --const Constantly show cursor position A, E( I: o* ?/ X" m/ k0 I
- -d --rebinddelete Fix Backspace/Delete confusion problem
, z, q% f( N0 P8 k+ O: F1 o5 M - -h --help Show this help text; `7 {# H) j7 g C
- -l --nofollow Don't follow symbolic links, overwrite
& Y' |0 n6 |6 W4 y9 H5 M% K: G* ]$ E - -n --noread Do not read the file (only write it)
+ t+ l: f4 V( O- {3 s" V9 ] - -p --preserve Preserve XON (^Q) and XOFF (^S) keys$ e+ X, s/ a* O1 @. R& _7 D
- -t --tempfile Auto save on exit, don't prompt
3 u1 k8 U& v7 e8 |" I4 _ - -v --view View mode (read-only)
& [" b; i5 y7 q2 e, x - -x --nohelp Don't show the two help lines' p8 w3 a3 y4 f& a/ I/ S0 g; B
- -z --suspend Enable suspension$ j6 Z+ z0 ^! D$ n
- root@F650A:~ # nano -V9 W \5 m% m3 g. U5 \! e
- GNU nano, version 2.4.2
$ o" X) ?5 D- M; d, A* ?( K - (C) 1999..2015 Free Software Foundation, Inc.- A" v4 k) I7 k$ l; a" ^
- Email: nano@nano-editor.org Web: http://www.nano-editor.org/
3 k: y' H' V$ g- E - Compiled options: --enable-tiny --disable-utf87 Y' A$ j: s) z
复制代码- root@F650A:~ # dropbear -h; y- S& H! W9 s4 F8 f$ m! z+ T/ @
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html! x( q1 U! w0 r+ ^. I
- Usage: dropbear [options]6 q) N5 Y1 |6 [$ n
- -b bannerfile Display the contents of bannerfile before user login
7 Y0 i% U i6 l ^2 B- }5 U - (default: none)
& V+ T# i. h, U4 N - -r keyfile Specify hostkeys (repeatable)
' \+ }) x! }. ?& i: t - defaults:! D1 j2 h& _ A$ |
- dss /etc/dropbear/dropbear_dss_host_key
' w/ V8 n8 b! U# J) j/ U& h - rsa /etc/dropbear/dropbear_rsa_host_key
' U6 p, U( M* L1 p, z - ecdsa /etc/dropbear/dropbear_ecdsa_host_key( K+ ~2 o. T" h: S. D2 F, y
- -R Create hostkeys as required" N7 ~* d4 k4 ]2 [* ~5 `! P
- -F Don't fork into background
x6 t" V$ T3 T: \* I - -E Log to stderr rather than syslog k: T: l" S1 o) K6 O1 p
- -m Don't display the motd on login# ]. o3 e7 f1 \2 t
- -w Disallow root logins
+ {- ]- L7 H! j! q - -s Disable password logins, j: n" z: ~* ^2 M% U; j- E. S
- -g Disable password logins for root
$ q3 L2 u& I5 c1 t - -B Allow blank password logins
# o" B+ q0 c; t: \ k, N1 b - -j Disable local port forwarding0 k; l2 f7 Y# M
- -k Disable remote port forwarding
+ D3 \- _! p; W - -a Allow connections to forwarded ports from any host$ t; k! D: G( u
- -p [address:]port
1 m( e4 |/ q: b- k' N1 p- C# G/ ? - Listen on specified tcp port (and optionally address),. q7 G& b3 } `# O7 F$ F7 R
- up to 10 can be specified/ w# x5 u+ k+ `9 j
- (default port is 22 if none specified)
" b* X5 k- M+ H5 M s5 F* t - -P PidFile Create pid file PidFile
$ v& T% Q- t# u2 M' e# G! g/ u - (default /var/run/dropbear.pid)) q0 p1 w6 m- O9 `) `. n x! n
- -i Start for inetd
" I3 G" c+ M: x - -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)8 m8 ~* h. }6 R) M
- -K <keepalive> (0 is never, default 0, in seconds)
- k$ R, Q4 b+ O7 _% ?4 N" b - -I <idle_timeout> (0 is never, default 0, in seconds)
9 I7 Y1 J* F/ ~' l+ c - -V Version2 }' r" R1 `+ r; {2 `$ v
复制代码 0 y4 ] b; z4 f" H# [. G9 M
5 y- d+ p$ P, r( P; E |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|