shell?busybox_单个可执行文件中的Busybox小巧但功能强大Linux Shell和工具

shell?busybox_单个可执行文件中的Busybox小巧但功能强大Linux Shell和工具,第1张

概述shell?busybox_单个可执行文件中的Busybox小巧但功能强大Linux Shell和工具

shell?busyBox

linux has a lot of tools and bash alternatives to using. These tools vary from a little to a complete application suite. But if we have fewer resources in our linux system or if it is an embedded system we have to use compact all in one tool and librarIEs. Here the solution is BusyBox. BusyBox is a project developed to merge popular tools and a simple shell into a single executable file.

linux有许多使用工具和bash替代品。 这些工具从少量到完整的应用程序套件不等。 但是,如果我们linux系统中的资源较少,或者如果它是嵌入式系统,则必须在一个工具和库中全部使用紧凑型。 这里的解决方案是BusyBox。 BusyBox是一个旨在将流行的工具和简单的shell合并到单个可执行文件中的项目。

BusyBox专业人士 (BusyBox Pros) Only a single executable file

只有一个可执行文件Low disk space usage

磁盘空间使用率低No dependency problems

没有依赖性问题Low memory usage

低内存使用Practical installation and deployment

实际安装和部署BusyBox缺点(BusyBox Cons) Not cover all tools

不涵盖所有工具Fewer features for tools

工具的功能更少No independent tool update

没有独立的工具更新Some uncommon behavior

一些不常见的行为BusyBox安装(BusyBox Installation)

BusyBox can be install for different distributions with related package managers.

可以通过相关的软件包管理器为不同的发行版安装BusyBox。

Fedora,CentOS,RedHat: (Fedora, CentOS, RedHat:)
$ sudo yum install busyBox
Ubuntu,Debian,Mint,Kali: (Ubuntu, Debian, Mint, Kali:)
$ sudo apt install busyBox

Ubuntu, Debian, Mint, Kali:
Ubuntu,Debian,Mint,Kali:
BusyBox帮助 (BusyBox Help)

Help can be get like below. This command also Lists available commands.

可以通过以下方式获得帮助。 此命令还列出了可用的命令。

$ busyBox --help

Help
帮帮我
指令(Commands)

Following commands are currently supported by busyBox

目前,busyBox支持以下命令

[, [[, acpID, adjtimex, ar, arp, arPing, ash, awk, basename, blockdev, brctl, bunzip2, bzcat, bzip2, cal,         cat, chgrp, chmod, chown, chpasswd, chroot, chvt, clear, cmp, cp, cpio, cttyHack, cut, date, dc, dd,         deallocvt, depmod, devmem, df, diff, dirname, dmesg, dnsdomainname, dos2unix, du, dumpkmap, dumpleases,         echo, egrep, env, expand, expr, false, fgrep, find, fold, free, freeramdisk, fstrim, ftpget, ftpput,         getopt, getty, grep, groups, gunzip, gzip, halt, head, hexdump, hostID, hostname, httpd, hwclock, ID,         ifconfig, init, insmod, ionice, ip, ipcalc, kill, killall, klogd, last, less, ln, loadFont, loadkmap,         logger, login, logname, logread, losetup, ls, lsmod, lzcat, lzma, lzop, lzopcat, md5sum, mdev, microcom,         mkdir, mkfifo, mknod, mkswap, mktemp, modinfo, modprobe, more, mount, mt, mv, nameif, nc, netstat,         nslookup, od, openvt, patch, pIDof, Ping, Ping6, pivot_root, poweroff, printf, ps, pwd, rdate, readlink,         realpath, reboot, renice, reset, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, sed, seq,         setkeycodes, setsID, sh, sha1sum, sha256sum, sha512sum, sleep, sort, start-stop-daemon, stat, strings,         stty, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tee, telnet, test,         tftp, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, udhcpc, udhcpd, umount, uname,         uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode,         vconfig, vi, watch, watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat
在BusyBox上运行命令 (Running Commands On BusyBox)

BusyBox commands can be used by executing busyBox and the command name as argument. There are other ways like the soft link or configuring busyBox as a default command provIDer.

可以通过执行busyBox和命令名称作为参数来使用BusyBox命令。 还有其他方法,例如软链接或将busyBox配置为默认命令提供程序。

$ /bin/busyBox ls

Use Commands
使用命令
向BusyBox提供根权限(ProvIDing Root Permission to BusyBox)

Some commands may need root privileges. For example Ping command provIDed by busyBox needs these root privileges. In this example we provIDe with sudo command.

某些命令可能需要root特权。 例如,busyBox提供的Ping命令需要这些root特权。 在此示例中,我们提供了sudo命令。

$ sudo /bin/busyBox Ping Google.com

Root Permission
根权限
LEARN MORE  Linux vs Unix 了解更多linux vs Unix

翻译自: https://www.poftut.com/busybox-little-but-powerful-linux-shell-and-tools-in-single-executable/

shell?busyBox

总结

以上是内存溢出为你收集整理的shell?busybox_单个可执行文件中的Busybox小巧但功能强大Linux Shell和工具全部内容,希望文章能够帮你解决shell?busybox_单个可执行文件中的Busybox小巧但功能强大Linux Shell和工具所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1013180.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)