BusyBox: Difference between revisions
Prabuanand (talk | contribs) (moved Shutdown commands from OpenRC page) |
Prabuanand (talk | contribs) (added note on busybox init) |
||
Line 26: | Line 26: | ||
{{Main|How to get regular stuff working}} | {{Main|How to get regular stuff working}} | ||
BusyBox is set up as an endpoint for numerous symlinks that substitute various utilities.The utilities in BusyBox generally have fewer options than their full-featured GNU counterparts. If you find certain utilities in busybox lacking in features or options, it is easy to [[How to get regular stuff working|replace]] respective endpoints by their equivalent full-featured utilities. | BusyBox is set up as an endpoint for numerous symlinks that substitute various utilities.The utilities in BusyBox generally have fewer options than their full-featured GNU counterparts. If you find certain utilities in busybox lacking in features or options, it is easy to [[How to get regular stuff working|replace]] respective endpoints by their equivalent full-featured utilities. | ||
== init == | |||
Busybox init is the first process(pid 1) started during boot. It never exits. It executes [[OpenRC]] runlevel scripts according to entries in {{Path|/etc/inittab}}. | |||
== Shutdown commands == | == Shutdown commands == | ||
Line 38: | Line 42: | ||
* [https://busybox.net/downloads/BusyBox.html Official BusyBox Manual] | * [https://busybox.net/downloads/BusyBox.html Official BusyBox Manual] | ||
* [http://k.japko.eu/busybox-vi-tutorial.html Busybox vi tutorial] | * [http://k.japko.eu/busybox-vi-tutorial.html Busybox vi tutorial] | ||
[[Category:System Administration]] | [[Category:System Administration]] |
Latest revision as of 11:27, 25 September 2025
Alpine Linux is built around musl libc and busybox. To minimize footprint, Alpine Linux comes with BusyBox by default. BusyBox provides replacements for most of the utilities usually found in GNU coreutils, util-linux, etc. Built-in utility programs called as applets share code for many common operations. To list the applets that have been compiled into BusyBox binary, issue the command with no argument as follows: $ busybox
To view options supported by a specific BusyBox applet, say grep
, issue the command $ busybox grep -h
Ash shell
Alpine Linux uses Busybox Ash shell for its default shell.
vi
Busybox uses tiny vi, a small 'vi' clone. Refer Busybox vi tutorial for an excellent introduction.
udhcpc
udhcpc is the default DHCP client that comes inbuilt with Busybox.
Cron
Busybox crond is the default cron implementation in Alpine Linux.
acpid
Alpine Linux comes inbuilt with a basic version of acpid as part of BusyBox.
Replacing BusyBox utilities
BusyBox is set up as an endpoint for numerous symlinks that substitute various utilities.The utilities in BusyBox generally have fewer options than their full-featured GNU counterparts. If you find certain utilities in busybox lacking in features or options, it is easy to replace respective endpoints by their equivalent full-featured utilities.
init
Busybox init is the first process(pid 1) started during boot. It never exits. It executes OpenRC runlevel scripts according to entries in /etc/inittab.
Shutdown commands
The busybox command equivalent for traditional GNU/Linux systems shutdown commands are as follows:
# reboot # ⇔ shutdown now -r # halt # ⇔ shutdown now -H # poweroff # ⇔ shutdown now -P