Version: 1.5.5 Binary: cleanstart-utils (alias: csu)
What It Does
cleanstart-utils is a BusyBox-style multi-call binary written in Rust. It provides 33 common Unix utilities in a single, memory-safe static binary for use inside CleanStart containers. Instead of installing coreutils, grep, tar, and wget separately, you get one binary that handles all of them.
Usage
Two invocation styles:
# Direct invocationcleanstart-utils cp -r /src /dstcsu grep -i "error" /var/log/app.log # Symlink invocation (zero-overhead)ln -s /usr/local/bin/cleanstart-utils /bin/cp/bin/cp -r /src /dstWhen invoked with no arguments, it prints the version and lists all available applets.
Complete Applet List
Filesystem
Command | Usage | Key Flags |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Text Processing
Command | Usage | Key Flags |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| C-style format strings |
Directory and Environment
Command | Usage | Description |
|---|---|---|
|
| List directory contents |
|
| Print working directory |
|
| Print user/group identity |
|
| Locate a command |
|
| Print or set environment |
|
| Print environment variables |
|
| Print date/time |
|
| Pause execution |
|
| Send signal to process |
|
| Exit 0 |
|
| Exit 1 |
Archives
Command | Usage | Key Flags |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Network
Command | Usage | Key Flags |
|---|---|---|
|
|
|
|
|
|
All network operations use TLS 1.3 via rustls (no OpenSSL dependency).
Shell
Command | Description |
|---|---|
| Minimal POSIX-subset shell for basic scripting |
The built-in shell handles simple command execution, pipes, and redirects. Complex shell features delegate to /bin/sh if available.
Feature Flags
All features are enabled by default. When a feature is disabled at compile time, its commands return a "not compiled in" error.
Feature | Commands | Dependencies |
|---|---|---|
| sed | None |
| grep | regex 1.10 |
| tar, unzip, gzip, gunzip | tar, flate2, xz2 |
| fetch, wget | ureq (rustls TLS 1.3) |
| date (format strings) | chrono 0.4 |
Shared Library
cleanstart-utils also ships as libcleanstart for embedding in other tools:
use libcleanstart::{dispatch_builtin, env_expand}; // Run a builtin commanddispatch_builtin("mkdir", &["-p", "/data/logs"]); // Expand environment variableslet expanded = env_expand("$HOME/.config");This is how cleanimg-init provides its 16 builtins -- it links against libcleanstart rather than reimplementing them.
