BusyBox: One Binary for a Whole Embedded Userland
Learn what BusyBox provides, how its applets are invoked by name or through symlinks, and how to check which tools a small root filesystem contains.
BusyBox packs small versions of many common Unix utilities into a single executable. This guide shows how applets are invoked and how to see what a given BusyBox build includes.
What BusyBox is
According to its documentation, BusyBox is a multi-call binary: one executable that combines many utilities, called applets. It targets systems with limited resources, is optimized for size, and is modular, so applets and features can be included or excluded at compile time.
That last point matters for your own images. Two BusyBox binaries can contain different tools, so never assume an applet exists on a device. Check it.
Two ways to invoke an applet
The project documents two forms. The explicit form passes the applet name as the first argument. The symlink form uses a link named after the applet, and BusyBox behaves as that applet based on the name it was called by.
The following blocks install BusyBox from the distribution repositories. Use the one for your distro.
apt-get update && apt-get install -y busybox-staticdnf install -y busyboxpacman -Sy --noconfirm busyboxNow call applets explicitly:
BB=$(command -v busybox)
"$BB" echo "hello from an applet"
"$BB" ls /Next, create a symlink named after an applet in a scratch directory and run it:
BB=$(command -v busybox)
mkdir -p /tmp/bbdemo
ln -sf "$BB" /tmp/bbdemo/uname
/tmp/bbdemo/uname -sThe link runs the uname applet, not a separate program. A real root filesystem does this for every applet it needs. Per the documentation, if a symlink or hardlink installation scheme was enabled, make install places those links in the directory set by CONFIG_PREFIX.
Check which applets a build contains
Running busybox with no arguments lists the applets compiled into that binary. This is the quickest audit of a small root filesystem:
busybox | head -n 20To check for one specific tool, search that output:
busybox | grep -wo -e ls -e sh -e wget | sort -uIf a name you need is missing, it was not compiled into that binary. Select it in make menuconfig and rebuild.
Get usage help
Most applets accept --help for a short usage description. How much detail it prints depends on whether CONFIG_FEATURE_VERBOSE_USAGE was enabled at build time.
busybox ls --help 2>&1 | head -n 5Test scripts against the target’s BusyBox, not your desktop shell tools.
Building your own
The documented build flow is make config or make menuconfig, then make, then make install. To see this inside a complete image build, read Buildroot: Build a Minimal Linux Image and Boot It in QEMU. To test a binary built for another architecture, see Cross-Compile a Hello World for ARM and Run It with QEMU User-Mode.
Release status
The BusyBox home page labels 1.36.1 (19 May 2023) as the latest stable release and lists 1.38.0 (13 May 2026) as unstable. Check the download page for current status before choosing a version.
Sources
This article was drafted with AI assistance, fact-checked against the sources listed above and reviewed by a human editor before publication. Spotted an error? See our corrections policy.