|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。9 n, k, q6 b9 F8 R/ t
9 c3 r* w+ e4 x: l& |0 c
- root@F650A:~ # /usr/bin/busybox
/ e' @ P, ?! J0 I5 m# A - BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.4 o# U5 U/ @" k
- BusyBox is copyrighted by many authors between 1998-2012.
0 T8 \( O1 H" P$ x# {1 c* D - Licensed under GPLv2. See source distribution for detailed, ]3 f" p( p; T( }; f) {
- copyright notices.
' [. Z1 J& i4 |
% }: P5 |+ m5 ~8 k5 g4 ?- Usage: busybox [function [arguments]...]
! B- O. H$ f( i$ n$ J- v7 w - or: busybox --list[-full]
1 p# l+ \2 e, m, W, d l- C$ z - or: busybox --install [-s] [DIR]9 l5 W0 R3 | X+ V7 N! \; r4 x( m
- or: function [arguments]...
1 S8 F; L, Y" p - ) ?# f+ f$ |$ m9 B
- BusyBox is a multi-call binary that combines many common Unix: q4 ~' Q0 M3 S; h
- utilities into a single executable. Most people will create a
* O3 {! c/ G+ b' V1 B- v - link to busybox for each function they wish to use and BusyBox
- X, k' N9 `) m5 P - will act like whatever it was invoked as.* K- y b* v" P1 o9 x+ T
" p5 K$ g/ C+ P/ ] H$ s- Currently defined functions:* }; |' Q" X, _0 \7 A
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,( a0 L6 I* q& J6 ?6 z
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,& q o s8 w O( b: f
- cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
v( I& u+ r2 w - diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,; ]( H; P P: H1 ?) E* K4 j% f0 c
- ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,7 q- W- L* s2 B9 x
- freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,
( F3 q( \/ r2 A/ Q/ @: p8 u - hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
& d' o$ U4 B: n+ j - install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,# Z5 |/ ~4 R" j7 K( Q' t* {
- killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,6 a( I, a- S/ U0 [; z: t
- login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,! ^) f1 f, _- P9 R h. c- [ Q
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,% H% c! d/ U3 j+ y
- modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,
$ X9 c, D0 i# X% f8 {+ M - nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,8 Z0 E `+ B) N! _0 ^
- poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
: k7 O4 B: V% ~2 \. Q - renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch," z7 C. Q9 D9 ~3 u! l
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
3 W; X, Z, ~3 z% R; C* t - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,* e* j) W, n. ^/ a5 F3 v
- switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
8 s o% ]8 w, X, F% z3 E/ M; Y - touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,
6 s% g, Z# C: {6 L - ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,
3 e; t5 ~& o/ F5 T/ |3 {- u( E - uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which, F- i, u2 B" q3 _8 C! y7 c
- who, whoami, xargs, xz, xzcat, yes, zcat
9 E; f6 g* p# U8 b, P' u+ j0 X
6 E2 S: s3 @! `7 p6 g) y+ Q
复制代码- root@F650A:~ # nano -h8 x9 v/ O$ a. r L* d
- Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...% ?: i9 E* U: K& a, R
. P/ f- m" r @- Option GNU long option Meaning
v* z n1 I2 K6 o' I& X8 ]/ f1 y - +LINE,COLUMN Start at line LINE, column COLUMN
* ^$ {% Y& N) F: c$ D - -D --boldtext Use bold instead of reverse video text
- ]2 C2 g" }" v I/ P - -K --rebindkeypad Fix numeric keypad key confusion problem
$ r' T5 d; _# ~( Q4 @$ e6 k - -L --nonewlines Don't add newlines to the ends of files
; v% O6 b! y: k1 ~1 i9 [) u/ ` - -O --morespace Use one more line for editing& [8 J& F6 o: Q6 j- V' I' [
- -R --restricted Restricted mode
5 ]# z- t r: x* M4 L# X- V* Q - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
# M6 I8 d8 J; i( I - -V --version Print version information and exit
2 [& x1 R( t. r+ v8 F5 f - -c --const Constantly show cursor position
+ S; ~$ X2 e" v) d: R+ |* e - -d --rebinddelete Fix Backspace/Delete confusion problem) ?& t0 S* A' ~3 I% F) \
- -h --help Show this help text
9 X! W* Y5 I+ C2 y" w# g - -l --nofollow Don't follow symbolic links, overwrite
+ ^0 P) m! ]. [ - -n --noread Do not read the file (only write it)0 n, Z/ B$ ]; G% ]8 a
- -p --preserve Preserve XON (^Q) and XOFF (^S) keys( W2 z Z2 n7 ?& f. l
- -t --tempfile Auto save on exit, don't prompt
% ?- U0 g/ X/ k/ q - -v --view View mode (read-only)
4 H$ e' O+ h# r) m4 }8 k4 i - -x --nohelp Don't show the two help lines- R- U+ m5 U7 ?3 z! g/ a& q
- -z --suspend Enable suspension( V; d( w' Y$ ^/ ~
- root@F650A:~ # nano -V
" B9 C+ D' j7 f - GNU nano, version 2.4.2
" ^* ^ y. H g! o1 B, C - (C) 1999..2015 Free Software Foundation, Inc.
6 S+ H2 n; k" x3 B' U - Email: nano@nano-editor.org Web: http://www.nano-editor.org/
! B3 i9 w* F M - Compiled options: --enable-tiny --disable-utf8" o* `- X r5 E
复制代码- root@F650A:~ # dropbear -h6 Z* ^- q" c" u8 Z9 a
- Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html: w& x3 L$ k$ e i* d
- Usage: dropbear [options]
0 |7 x; I+ \+ I- V - -b bannerfile Display the contents of bannerfile before user login8 v7 z8 o, \1 X i" o# Q
- (default: none), z! g" K$ w3 r6 ~8 o
- -r keyfile Specify hostkeys (repeatable)
o' y5 g! j" Q9 a# X - defaults:
, b' G" z' h+ `! f/ F - dss /etc/dropbear/dropbear_dss_host_key
" m' p$ m0 \9 j% R: D$ Y - rsa /etc/dropbear/dropbear_rsa_host_key% V9 q9 j0 X/ q
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key
' z/ U7 ?' h; B2 W9 g9 s - -R Create hostkeys as required
% o% u) M5 Y/ M0 s( n - -F Don't fork into background
& s$ |, x- p/ ?: i$ h - -E Log to stderr rather than syslog8 C5 d8 y H( f1 V$ M
- -m Don't display the motd on login0 \# i# N! c% [- _, M+ \
- -w Disallow root logins1 X3 @: [2 \* W* M
- -s Disable password logins
/ j- M# P9 M( f - -g Disable password logins for root
$ e2 A. s7 m$ S* `& A0 g - -B Allow blank password logins0 q+ v) ^1 k5 \7 ~
- -j Disable local port forwarding
& Z/ ]4 \ R7 q: S - -k Disable remote port forwarding# ~% b) Q& J' i" k" O- i5 |" A5 I
- -a Allow connections to forwarded ports from any host
1 ^# }' h! e8 S/ C) a - -p [address:]port5 X; L" S% M6 M y
- Listen on specified tcp port (and optionally address),
7 F! c V# C' y5 v - up to 10 can be specified
! k3 y2 o4 c# z# m - (default port is 22 if none specified) x. U6 k j& o1 E! ^
- -P PidFile Create pid file PidFile
, G- L: ~. N# m+ v. W - (default /var/run/dropbear.pid)
: ]$ U, I: Q8 A a0 l/ H - -i Start for inetd) f2 k* q$ p I3 ~ s
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)* R) m1 ?% \* b" N( {
- -K <keepalive> (0 is never, default 0, in seconds), r/ B; m6 I7 p, q" e! s" O# Z
- -I <idle_timeout> (0 is never, default 0, in seconds)
5 k" D" }/ Y! C4 J* }- C) Z - -V Version
; I* b' X/ r/ Y! I# ]6 s
复制代码 ( Z( O+ ?" }) |2 o6 q3 t- H
( C# ^0 |3 E! X6 t
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|