|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
$ J" I' F: `/ c7 {3 d. I$ ~' w4 Y# f0 g6 y
- root@F650A:~ # /usr/bin/busybox0 e0 ?6 |* {5 h8 c$ {, J q
- BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.4 [* M# T |& I/ B( K; M
- BusyBox is copyrighted by many authors between 1998-2012.
* E! m! b6 i) {/ U4 i - Licensed under GPLv2. See source distribution for detailed% T* G; h( X- M4 e
- copyright notices." v- d& }* l1 s9 k" _
5 U) m9 u$ U4 M: O3 n- Usage: busybox [function [arguments]...]
" `! W5 z1 p& d5 ]1 k& p P9 G - or: busybox --list[-full]/ e: H. _/ q3 J8 M' i8 }
- or: busybox --install [-s] [DIR]9 j8 T. N% b) @' E7 r
- or: function [arguments]...
6 r, y, b0 N: X6 N% z6 D - 7 H& o7 k' P& ?: k# G5 g" D
- BusyBox is a multi-call binary that combines many common Unix) r& D, |) A* ?# O" P6 Y
- utilities into a single executable. Most people will create a9 i% M! g. F. ~7 R) R
- link to busybox for each function they wish to use and BusyBox# u% l* [$ O( {; ~" \
- will act like whatever it was invoked as.
# l) u7 C! B8 r/ Z( s6 q
2 ^$ r! s, q% o$ B% A$ V& ^0 @- Currently defined functions:
& w8 p& u/ e' H+ U& b - [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,4 m( n! L7 a1 ]: f. X- A0 l
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,
: w" K) I$ P& \' n1 ~ - cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
2 ` r8 j+ f4 x5 a$ ? - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,& i6 g3 s: _7 P
- ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,
! {( x- w: J7 u - freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,6 `+ O1 G6 J, V/ I2 B2 ~' Y6 t
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
; V1 [: O/ h' W - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
2 b# \5 S0 }' p* _! } - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,/ k9 Y% y* M* p% h3 J: V
- login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,( x. w: [( c+ Q5 h0 T2 D
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,, k0 _# F1 }, v% p% ^8 L7 ]) K$ P
- modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
; Y% a0 Q8 J! R3 G( a2 M/ S l - nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,, z+ i& v- n- d I
- poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
2 H, h- `) ^# Z/ w$ @ - renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,3 K7 ]' l' b4 I; F
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
% G# D: v$ l1 [/ B8 s2 z - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,0 e; t4 p- R }6 q* Q5 t
- switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,% G" e1 z4 G; O6 y% l& u" l8 `
- touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
1 E( x# [$ s$ I, Y. s( H5 y8 L - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
" W5 S k; k F* X - uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,2 [+ T* B: X+ ^3 m6 B; P8 D6 R2 y! w* C
- who, whoami, xargs, xz, xzcat, yes, zcat7 E% s$ r6 U* |2 }
7 Z! p' D3 i6 W: A$ X: K$ v
复制代码- root@F650A:~ # nano -h
( b/ h+ h' C2 ~ T4 ~; M- G - Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...' r8 ]0 I3 u4 G7 J
5 V# e+ n0 b8 w; W4 y6 Z) k, L- Option GNU long option Meaning
" R; N7 z( G* [, S2 p* f- L# T0 g - +LINE,COLUMN Start at line LINE, column COLUMN4 o! Q0 `* ?% `( I
- -D --boldtext Use bold instead of reverse video text K {' x. R2 K, j7 F) l
- -K --rebindkeypad Fix numeric keypad key confusion problem
" h) M6 F; y$ @( g3 r& S' N" _ - -L --nonewlines Don't add newlines to the ends of files9 o# s5 X/ S, D+ U, H
- -O --morespace Use one more line for editing% H8 n/ h: ~+ Q
- -R --restricted Restricted mode
5 B2 |' @2 W/ g - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
2 q, v$ Z* k, p( ~ - -V --version Print version information and exit; Z. b! O5 [- H& P
- -c --const Constantly show cursor position3 B$ S# \; D9 [) [/ G3 l% b
- -d --rebinddelete Fix Backspace/Delete confusion problem+ q! Y) z& ^7 ~" R
- -h --help Show this help text
) Z' @$ p: ~- L3 q - -l --nofollow Don't follow symbolic links, overwrite$ t* A' A0 o/ q3 o+ M/ z
- -n --noread Do not read the file (only write it)
$ m+ D. Y/ G6 l) P - -p --preserve Preserve XON (^Q) and XOFF (^S) keys8 w5 ?7 n4 \; X( D" @/ |* B9 ]- I
- -t --tempfile Auto save on exit, don't prompt
, ]# E7 L4 |* e# J4 [( l" d0 Z( P - -v --view View mode (read-only)$ u9 j1 U- t0 Z% b7 r5 ^* P5 A2 @
- -x --nohelp Don't show the two help lines9 |0 D0 Z0 A. Q+ E8 Q$ [
- -z --suspend Enable suspension$ `" P' W. z5 X+ G0 w0 @1 `
- root@F650A:~ # nano -V
3 v. y5 m7 ]& S - GNU nano, version 2.4.2- q* y+ Q& [4 n0 a; x, z1 I& I2 M) s3 ~
- (C) 1999..2015 Free Software Foundation, Inc.5 y6 N; a s$ C% b
- Email: nano@nano-editor.org Web: http://www.nano-editor.org/0 P% }0 E5 v' d4 x
- Compiled options: --enable-tiny --disable-utf8# f& f3 [* M, L- a
复制代码- root@F650A:~ # dropbear -h5 M. i ?# R8 _2 P" O
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html5 X1 [1 I+ _2 L) Z1 ]
- Usage: dropbear [options]
7 G" z- \! @0 ~( ` - -b bannerfile Display the contents of bannerfile before user login2 k! t* @' P& b) y
- (default: none)
$ g; u( ^. r8 J6 v' ] I - -r keyfile Specify hostkeys (repeatable)9 q7 W8 S' f- A# D c# r
- defaults:
- G8 p3 C0 t w0 q. r* h - dss /etc/dropbear/dropbear_dss_host_key
2 }: c5 r; u4 _ - rsa /etc/dropbear/dropbear_rsa_host_key/ h& M; U5 n* O1 D: g
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key X# |/ G: m& A; |0 I- U! H
- -R Create hostkeys as required
& J! b/ Z( R, l: @ - -F Don't fork into background7 n" T6 y" d, o7 K- U. z
- -E Log to stderr rather than syslog
! d* f. N0 @, e: f4 w - -m Don't display the motd on login
. y+ Z; |% V; ]4 @ - -w Disallow root logins- D. G$ [- }) H* @, |
- -s Disable password logins0 X5 _$ t& y/ r6 P( k. R% ]
- -g Disable password logins for root3 }7 j5 V8 r4 E
- -B Allow blank password logins2 [5 @& [1 G1 r) X
- -j Disable local port forwarding' \( o3 I$ x& |: K+ m" z# N
- -k Disable remote port forwarding9 b% R% h. k I" A
- -a Allow connections to forwarded ports from any host1 t0 m P5 B( V3 }0 A4 A
- -p [address:]port
5 t* p* ^/ }) }( l, ?* P5 y4 H - Listen on specified tcp port (and optionally address),9 @+ Y$ l( [7 e: v& d; `
- up to 10 can be specified3 N/ f( P/ Z# O7 a# i
- (default port is 22 if none specified)
3 L2 U. L5 J4 m4 I+ K, B - -P PidFile Create pid file PidFile
" }* L3 @9 v4 T: q( W - (default /var/run/dropbear.pid)! f6 j- P/ z9 `$ y$ }4 k
- -i Start for inetd1 S3 X, j- Y2 ?( A) w
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)" X/ ^: l/ @ B7 {# t) ?6 U
- -K <keepalive> (0 is never, default 0, in seconds)
4 x, p* K/ ~5 P8 ?9 P - -I <idle_timeout> (0 is never, default 0, in seconds)
( ^! y8 k7 V# ^2 V2 c - -V Version' Q" t% R; z1 @+ W
复制代码 5 q. x6 W% Q/ b4 c6 j( G+ }
0 T1 c! c0 Z# E9 \ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|