|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
# O' w( r' D& T6 o! Q6 j q
: t! d& i" h# S$ b5 O1 V5 k- root@F650A:~ # /usr/bin/busybox
* P. {6 S H) b0 f; ^6 G# m - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.4 x# s& o- e/ U# i) I% j! M
- BusyBox is copyrighted by many authors between 1998-2012. Y' X2 G# X! Y# `" k4 }
- Licensed under GPLv2. See source distribution for detailed# e: ]* `/ D1 u
- copyright notices.
/ L L5 e& @9 @ - ) d; p+ E4 z, N+ S1 B) m
- Usage: busybox [function [arguments]...]; F$ g) ^' L B8 a5 V9 h* u
- or: busybox --list[-full]4 q. ]. K' F6 z
- or: busybox --install [-s] [DIR]
. B2 l; B; J3 d2 j- y - or: function [arguments]...
; N1 f% B% I3 Z8 `! u
- R* @/ R) _6 Z6 J- B i/ S, I7 P# ]- BusyBox is a multi-call binary that combines many common Unix3 B. i) {% r% e- H+ L
- utilities into a single executable. Most people will create a! u. _ T3 ^0 ^8 `# @0 T
- link to busybox for each function they wish to use and BusyBox& o& o. Y3 c8 W2 x2 w' G$ T$ H# n+ y
- will act like whatever it was invoked as./ p9 v, ^. ]: b. X
- 0 B8 R+ v3 v" E$ G0 G+ S( J8 x1 {! o8 n) c
- Currently defined functions:& `: F* g& h) @3 t
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,2 g2 n* I+ ?+ {) s. }; W* l- y; r
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,
. o H, |3 D4 A5 Z; g; p, t - cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
" {& h8 m. }( c' i - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
" z5 w$ A- e, a1 x% P5 I - ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
1 \( a% @* B9 { Y/ N - freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,8 `$ q0 f9 W0 K( T
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
5 `! W; \+ D6 T - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,; B% Z6 ~. _' |/ x
- killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
9 S2 c9 k% S9 s - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,
$ X. L6 j- {3 i# p - md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
' r$ f" G: k4 V h- ?+ V ] - modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,7 E$ L* W+ \# m$ l, p" ~
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,- [0 m( b7 e) h6 g$ }7 |* j! V
- poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,' e/ z9 s4 r. T3 I; X8 b* q
- renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,
; l5 u& k, b. x3 ]7 ?) @' J - setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
" c% t2 G+ `8 M - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
% |8 X' H! {. ~5 R, m - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
0 f N! e/ p7 H# l7 [ - touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
U$ h1 i; e: G3 M: P; v( D - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,5 K! H- h0 ~* F, J
- uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,1 p! T* q: K% ?; p$ a- \
- who, whoami, xargs, xz, xzcat, yes, zcat, L4 K! S, o; S' s7 m( u
- 7 s& X" {! G; N" w- E
复制代码- root@F650A:~ # nano -h: {) O0 S v4 p Q1 U
- Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
* S7 u& ^) h" q+ @$ s T
' \7 Y# t& g) U- p& |5 P- Option GNU long option Meaning
2 S H$ D( b" x& } - +LINE,COLUMN Start at line LINE, column COLUMN' }( }( H3 O3 I9 E3 p
- -D --boldtext Use bold instead of reverse video text
) N; Y/ }6 L" u9 h6 [. g- `% S6 L - -K --rebindkeypad Fix numeric keypad key confusion problem
! s2 u# ?( ]! `' q7 J, g# M - -L --nonewlines Don't add newlines to the ends of files
, Z6 K& C2 i" T( B - -O --morespace Use one more line for editing
) n' ?# [1 b- @, d8 s; O: m - -R --restricted Restricted mode( ~% a6 { k7 u- _5 I
- -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns4 @' k& |# C8 _; ^ P$ K. `
- -V --version Print version information and exit) P. q4 h3 m6 F0 v5 L
- -c --const Constantly show cursor position
4 Z" U$ H& n( y - -d --rebinddelete Fix Backspace/Delete confusion problem/ d# [' V0 ]. K' g; A
- -h --help Show this help text
3 M% b5 J. n1 X7 G0 j - -l --nofollow Don't follow symbolic links, overwrite, n2 n C8 W) W
- -n --noread Do not read the file (only write it)6 S) }1 D& }0 a& q5 T
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys
0 D7 V8 c" w" q - -t --tempfile Auto save on exit, don't prompt7 O& ^$ A9 G2 A
- -v --view View mode (read-only)# u) a" o: r: {! W) {
- -x --nohelp Don't show the two help lines
5 i) E8 ^+ D( X B h( r' F! k! _9 q - -z --suspend Enable suspension
$ i7 Q, J% X" d% b; p% _6 Z - root@F650A:~ # nano -V
* r6 @- `- ?2 }+ v' D% F) V* y - GNU nano, version 2.4.2
/ n2 t2 E% n& h4 ^ - (C) 1999..2015 Free Software Foundation, Inc.* y: Y# M4 K' l" X- ?
- Email: nano@nano-editor.org Web: http://www.nano-editor.org/
3 F E6 q9 g. S8 ^9 \; I8 ~ - Compiled options: --enable-tiny --disable-utf8
7 B9 C7 {; ~) R. ~4 `$ u
复制代码- root@F650A:~ # dropbear -h) e: D8 v# i& |8 R1 y* A: k1 M' I
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html
) l- X) B$ f! \ - Usage: dropbear [options]
- t# Y5 ?+ x) g: [ - -b bannerfile Display the contents of bannerfile before user login$ U# M6 O0 S- G6 L
- (default: none)1 Q6 L) Q s! F
- -r keyfile Specify hostkeys (repeatable)
( }2 x( @$ n; e - defaults:) |) o! j7 C! }$ S8 D6 R
- dss /etc/dropbear/dropbear_dss_host_key) x S0 F) `- B0 L" h" j4 l
- rsa /etc/dropbear/dropbear_rsa_host_key! E, a2 C" Z; T w5 g+ x
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key
: j( v8 e# [9 F- F3 X# o - -R Create hostkeys as required
0 u' e, ]: y" R# Q: Q; h; n - -F Don't fork into background
( S/ i# S8 l- F, w2 ?4 T% \% W - -E Log to stderr rather than syslog
* I7 L; E2 d; I0 v, e! A8 O) S - -m Don't display the motd on login: v+ B5 X- S" ?: T% @! B5 C
- -w Disallow root logins
6 t! l9 V! F7 o( R3 A! c1 _ - -s Disable password logins
# `" l0 w1 k7 [# z - -g Disable password logins for root
{9 p* b7 E; [" S0 `- A - -B Allow blank password logins
2 M/ O0 k" S. z- X - -j Disable local port forwarding
# P9 ^+ b7 I( @7 _+ J - -k Disable remote port forwarding
( T/ |" Y: } y. ~! d+ R, f - -a Allow connections to forwarded ports from any host
, r- v+ n7 X# Y ?: w8 X# d - -p [address:]port
( |5 [! Y8 {2 i5 H% h. L - Listen on specified tcp port (and optionally address),
/ z7 i& Z! K$ O' O7 ]$ }8 y& u - up to 10 can be specified( w7 f) _2 H9 ^/ O' o, n: q
- (default port is 22 if none specified)
7 [( Y( \4 O9 B - -P PidFile Create pid file PidFile% Y* |& E z& f( p3 c+ f
- (default /var/run/dropbear.pid)
# i" @) s% T% L - -i Start for inetd" B. n) M& L* c# L; s! U$ u
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
1 q1 P: s. v& j! s+ s - -K <keepalive> (0 is never, default 0, in seconds)
$ R9 {0 J% b( b$ E" s* g+ R( M5 T - -I <idle_timeout> (0 is never, default 0, in seconds)
, {- j/ H$ q3 I6 h% N% _ ] - -V Version! C% I$ e+ p- U2 `3 C5 L
复制代码 - |6 R8 I# O8 h. R' q# ~5 z1 T5 Z3 t
6 N+ K, A; J+ w; q7 ~" n
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|