|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。
! D; j0 N" [/ S
, h/ w' y0 k) X- l- root@F650A:~ # /usr/bin/busybox
4 F" h& o: U4 d - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
' [' S) Z/ h8 Q& C - BusyBox is copyrighted by many authors between 1998-2012.' b8 _7 w$ G& o( w9 F' i
- Licensed under GPLv2. See source distribution for detailed
1 G# j( C1 c, w1 \" O' K - copyright notices.
+ i: H& i- g2 a7 A8 h* J
( f8 F3 h3 L* V4 A9 I4 L+ O- Usage: busybox [function [arguments]...]. n# T% N; @- f! G A
- or: busybox --list[-full]
, j6 k# O* m5 k - or: busybox --install [-s] [DIR]
. F) B0 k, O8 l) N - or: function [arguments]...! t( `7 S! _6 W" l# ]0 U
/ y$ A! ]7 _0 F% O. ~- BusyBox is a multi-call binary that combines many common Unix! m2 c8 E, h' o
- utilities into a single executable. Most people will create a5 v4 O! [& M# H5 z
- link to busybox for each function they wish to use and BusyBox
9 [0 ]! e- M' R7 a2 f) @ - will act like whatever it was invoked as.
3 M# |- J8 T' B0 ? - + p @. k1 N; o. w
- Currently defined functions:
$ n! T% k ]8 M. e( {) I( D6 I9 \ - [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,
9 W; [# U4 T( M3 n - bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,, s9 `- F6 f+ G# d$ | [9 j. F
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,, l$ ?5 C: n2 m$ f! S5 Z" O0 e
- diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
. o" C4 \; j: `0 _+ Z3 q! v) l: b B - ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,; A% I7 q/ D ]' u. [
- freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,* t/ ?& Z/ K* c p
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
% L3 h4 N: m6 z - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
, E4 R6 ?& ?' Y, L% s4 q7 A - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
/ R/ Y0 X c: j' f* j' `4 o. F( Y c - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,, D& r5 n+ e( ]3 U5 h$ g
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,; R. u' n6 N, t+ G- [3 H' U6 @" M
- modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
7 l/ M" g. T8 t! E! g" ] - nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,
' u/ Q P- s6 A+ v - poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,0 t' {% J4 [ R
- renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,. A% m) b* ?( @2 f
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,) \ y. U& }1 x, @9 o* v
- sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
* D! ?$ i+ Z' J5 U: T+ W. y - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,7 W, T v1 _* t
- touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
, e( b, a! j: N6 c5 d - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,/ P+ y, |6 r. d% Y
- uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,, a D9 p: O. f9 t
- who, whoami, xargs, xz, xzcat, yes, zcat
8 x% a; u# z% b( J+ e - 4 w: w$ X% I; }
复制代码- root@F650A:~ # nano -h% {+ w6 V- R! {3 B+ b7 U% Y
- Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
& t3 y0 i t2 U1 L" Q) Y, j1 k" z
h8 Z4 F( p. z' |/ t- Option GNU long option Meaning" v4 T8 i. b0 T% V/ d, |" `
- +LINE,COLUMN Start at line LINE, column COLUMN5 g' @: ]8 x* s# p# I+ o/ T" x r% K
- -D --boldtext Use bold instead of reverse video text
8 e: p" K( o! R, B4 v - -K --rebindkeypad Fix numeric keypad key confusion problem
* _4 N4 M$ g1 S. | - -L --nonewlines Don't add newlines to the ends of files
( P y5 {$ O' k1 g - -O --morespace Use one more line for editing
! y! U8 `1 N: h4 y - -R --restricted Restricted mode: a; u+ T3 I: @, Z. {7 }6 a
- -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns, i8 y# P8 D) ]- k, _$ [* V1 c
- -V --version Print version information and exit- u: I6 C: ~' d2 {
- -c --const Constantly show cursor position
* o; t! Z+ q' Q" j - -d --rebinddelete Fix Backspace/Delete confusion problem
7 G2 J/ j8 h' c3 y# [: r - -h --help Show this help text' J/ {. F( Y# w- X! S
- -l --nofollow Don't follow symbolic links, overwrite
5 }7 u, C9 H4 y - -n --noread Do not read the file (only write it)4 ~0 ^! O. x% s1 p
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys' Z+ |; O. S5 M7 }# a1 l
- -t --tempfile Auto save on exit, don't prompt' c2 }# f1 ]+ a6 d% z
- -v --view View mode (read-only)
* S* V& K6 c8 s& l0 J& j: c5 P: L- k - -x --nohelp Don't show the two help lines
+ v/ o m/ k& |) e - -z --suspend Enable suspension+ P j0 F0 U. x5 l F
- root@F650A:~ # nano -V
$ V* I E/ A4 f# _. W% h& w - GNU nano, version 2.4.2
1 a D1 p4 I1 D2 q3 \$ U# u& Y! R - (C) 1999..2015 Free Software Foundation, Inc.* W s e" g" R! I ~) @8 I( F! a, T
- Email: nano@nano-editor.org Web: http://www.nano-editor.org/, f" {& f; k% E; Z
- Compiled options: --enable-tiny --disable-utf81 f; J' _6 q E2 s5 \+ V' K: F1 T$ p
复制代码- root@F650A:~ # dropbear -h& ^( i# K/ Z5 C9 s+ f6 J5 F1 F* w @. t
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html% I4 U# y6 i# G% E# }
- Usage: dropbear [options]
" t1 W5 `3 s' a - -b bannerfile Display the contents of bannerfile before user login
2 S; J. {& I/ n. s- Y - (default: none)
) Z8 i# t$ Z2 N$ Z- X- x' ?, v0 [1 c - -r keyfile Specify hostkeys (repeatable)
+ i" w- x8 ]' R - defaults: g) C6 O; @' w' O1 q5 Z
- dss /etc/dropbear/dropbear_dss_host_key! @, p# w, K# o+ _. a
- rsa /etc/dropbear/dropbear_rsa_host_key
; H+ G) S9 H6 R- i+ }$ l4 x - ecdsa /etc/dropbear/dropbear_ecdsa_host_key- {2 x |3 N4 _' r8 ^" T
- -R Create hostkeys as required$ Z6 Z `0 K9 d; J8 H
- -F Don't fork into background9 t9 J. o' K: @( c0 E
- -E Log to stderr rather than syslog
, f% [- O7 r. ?$ S- [4 _! I - -m Don't display the motd on login1 E3 b! g7 I! K5 [
- -w Disallow root logins
* o9 }5 m# H, Y0 g - -s Disable password logins
& O, @6 l9 r% ]8 s7 e r - -g Disable password logins for root
1 @1 P4 T5 p' Y6 W0 X - -B Allow blank password logins7 z1 ~0 T# x" W0 [
- -j Disable local port forwarding
: c: k/ G7 T% J- t - -k Disable remote port forwarding# z/ R) w8 c+ u1 t8 i
- -a Allow connections to forwarded ports from any host
4 i0 W! E+ E' N2 |* Y$ A+ z - -p [address:]port& w I8 x+ G. ~
- Listen on specified tcp port (and optionally address),
. O: R# R4 T# h2 X* h% i7 G/ ~' ? - up to 10 can be specified
- A3 l' h5 C2 B+ |5 ~2 e# s - (default port is 22 if none specified)) T" Y/ _/ `7 J& Y4 S Q1 b
- -P PidFile Create pid file PidFile7 G7 `! J$ v9 p% d* P) j" S
- (default /var/run/dropbear.pid)) b7 w% j' J5 c* E
- -i Start for inetd
, |. I/ f3 g T - -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)8 i' ~7 ]0 V8 S7 E$ f% g
- -K <keepalive> (0 is never, default 0, in seconds)
( f# }$ b: o7 U - -I <idle_timeout> (0 is never, default 0, in seconds)/ i$ ~$ I% o4 l3 R. k/ N7 l2 [* e$ {
- -V Version
. B# J4 ^9 F* i$ ~
复制代码 * \ a) R. |, W
; [& @( f/ A$ `$ ^ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|