TopGit
GitHub Repo Review

uutils coreutils: a Rust Rewrite of GNU coreutils

uutils/coreutils
UTopGit review image for uutils/coreutils
Review by Topgit.dev for uutils/coreutils, with GitHub repository stats and README context.
Quick verdict

uutils coreutils is a from-scratch Rust rewrite of the GNU coreutils that runs the same ls, cp, and sort on Linux, macOS, *BSD, Windows, and WASI from one codebase. The project treats any output difference from GNU as a bug, not a feature, the right instinct for a drop-in replacement. It's worth adopting where GNU coreutils isn't the default; swapping it onto a mature Linux GNU userland is a smaller win, since the behavior gap hasn't hit zero.

Stars
★ 24.4k
Forks
⑂ 2.2k
Language
Rust
License
MIT
Topic
Backend
Updated
Nov 2026
Homepage
GitHub

A cross-platform rewrite of GNU coreutils in Rust

uutils coreutils reimplements every GNU coreutils program in Rust, compiling most of them into a single BusyBox-style multicall binary named coreutils. It targets Linux, macOS, the BSDs, Windows, and WASI from one codebase, so scripts written for one platform carry over to another. Per the README, Ubuntu switched to it by default starting with version 25.10.

Key features of uutils coreutils

  • ✓Ships as a single multicall binary (BusyBox-style) that dispatches to the right utility based on argv[0] or a subcommand, alongside individual per-utility binaries if you'd rather build those.
  • ✓Targets matching GNU's stdout output and exit codes exactly, so scripts that check error codes or parse output shouldn't need to change.
  • ✓Builds and runs on Linux, macOS, the BSDs, Windows, and WASI (including a WebAssembly build you can try in-browser) from one Rust codebase.
  • ✓Optional OpenSSL-backed hashing for md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, and cksum, statically linked by default, for a speed boost on CPUs without SHA-NI.
  • ✓Feature-gated builds let you compile only the utilities you need, e.g. cargo build --features "base32 cat echo rm" --no-default-features, instead of the whole set.
  • ✓SELinux-aware chcon and runcon are available behind a feature flag when libselinux and libclang are present on the build machine.
  • ✓Ships shell completions (bash, fish, zsh via make; elvish and powershell via the uudoc tool) and manpages alongside the binaries.
How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history ↗

Installing uutils coreutils

Grab a prebuilt binary from the project's GitHub releases: the latest-commit tag tracks main and is what bug reporters should test against, while the latest tag is the stable, reproducible build packagers use. If the glibc-linked coreutils-*-gnu build doesn't run on your system, the README points to a coreutils-*-musl build instead — the minimum glibc version it targets matches whatever the ubuntu-latest GitHub Actions runner ships. Building from source needs Rust (cargo, rustc) and, optionally, GNU Make. cargo build --release compiles the portable core set into a multicall coreutils binary; add --profile=release-small to shrink it, or --features windows / --features unix for platform-specific extras. cargo install --path . --locked installs into Cargo's bin folder ($HOME/.cargo/bin) but skips manpages and shell completions — for those, use make install (or sudo -E make install), which also drops bash, fish, and zsh completions into place. The README doesn't mention OS package managers like apt, Homebrew, or a Windows installer — installation is prebuilt binaries, Cargo, or Make.

Using uutils as a drop-in GNU replacement

Once installed, each utility behaves like its GNU namesake — ls, cp, sort, and the rest accept the same flags and produce the same stdout and exit codes, which is the explicit goal stated in the README (any mismatch is treated as a bug). If you don't want to overwrite your system's existing GNU binaries while testing, make PROG_PREFIX=uu- install installs everything under names like uu-ls and uu-cp instead, and make MULTICALL=y install installs the single multicall binary that dispatches based on how it's invoked, BusyBox-style. The project documents a handful of deliberate extensions beyond GNU parity too — --progress is the one example given — for cases where matching GNU exactly would mean leaving out something useful.

Advantages of the Rust implementation

  • ✓One Rust codebase runs identically on Linux, macOS, the BSDs, Windows, and WASI — no separate GNU, BSD, or Windows script branches.
  • ✓Feature-gated, per-utility crates mean you can compile in only base32 cat echo rm and skip the other utilities.
  • ✓Static linking, including the optional OpenSSL hashing backend, keeps deployment to a single small binary with no runtime library hunting.
  • ✓Rust's memory-safety guarantees rule out a class of bugs, like buffer overflows and use-after-free, that C coreutils has to guard against by hand.
  • ✓Mature enough to have become Ubuntu's default coreutils starting with release 25.10, per the README.

Current limitations and missing features

  • △The README itself admits "some flags may be missing, or the behavior could differ" versus GNU — full behavioral parity isn't there yet for every flag.
  • △No GNU test-suite pass percentage is stated in the README, so you can't verify current parity depth from the repo page alone — check the linked user manual's test-coverage page before relying on it in production.
  • △cargo install doesn't ship manpages or shell completions — you need the separate make install path or manual uudoc steps to get those.
  • △SELinux support (chcon, runcon) requires libselinux and libclang on the build machine, extra setup most non-SELinux users won't want.
  • △The OpenSSL-backed checksum speedup is a build-time opt-in, not the default, and the README notes it's a no-op on Windows.
View on GitHub ↗Homepage ↗

Alternatives to consider

GNU coreutils — the original C implementation this project rewrites; still the default on virtually every mainstream Linux distribution, so most users only need uutils coreutils if they specifically want the Rust rewrite's cross-platform reach.BusyBox — a C multicall binary combining many Unix utilities, including a coreutils subset, into one small binary, the same packaging idea uutils borrows for its own multicall coreutils binary; common in embedded Linux and slim Docker images.toybox — Android's small, BSD-licensed coreutils-style utility set, another minimal-footprint alternative aimed more at embedded and mobile than at cross-platform parity with GNU.

When to choose uutils coreutils

Pick uutils coreutils when you need the same core Unix utilities to behave identically across Linux, macOS, Windows, and WASI from a single toolchain — CI pipelines, cross-platform build scripts, or embedded targets where GNU's C toolchain is awkward to cross-compile are the clearest fits. If you're only running Linux with GNU coreutils already installed and have no cross-platform or embedded requirement, there's little reason to swap it in beyond curiosity or wanting the smaller multicall binary.

Frequently asked questions

Is uutils coreutils production ready?

uutils coreutils has implemented all the standard GNU coreutils programs, though the README notes some options may still be missing or behave differently than GNU's originals. Ubuntu shipping it by default since version 25.10 signals real production use, but verify any script's specific flag behavior before relying on it for critical automation.

What platforms does uutils coreutils support?

uutils coreutils runs on Linux, macOS, the BSDs, Windows, and WASI from a single Rust codebase, and the project also publishes a WebAssembly build you can try directly in a browser without installing anything.

How do I install uutils coreutils on Linux, macOS, or Windows?

uutils coreutils is available as prebuilt binaries from its GitHub releases (the latest-commit tag tracks main, latest is the stable tag), or you can build it yourself with cargo build --release or cargo install --path . --locked, which needs Rust's cargo and rustc.

Is uutils coreutils a drop-in replacement for GNU coreutils?

That's the explicit goal: uutils coreutils aims to match GNU's stdout output and exit codes exactly, and the project treats any difference from GNU as a bug rather than an intentional design choice. Full parity across every flag and edge case isn't guaranteed yet, though.

Does uutils coreutils ship on Ubuntu by default?

uutils coreutils has shipped by default on Ubuntu since version 25.10, per the project's README, replacing GNU coreutils as the default in that release.

What is the license for uutils coreutils?

uutils coreutils is licensed under the MIT License. That's more permissive than the original GNU coreutils, which is licensed under the GPL 3.0 or later — worth knowing if license compatibility matters for how you distribute your own project.

The problem it solves

GNU coreutils' ls, cp, sort, and friends are C programs tied to glibc and Unix-specific APIs, so a script that works on Linux often needs a different tool, a compatibility shim, or WSL to behave the same way on Windows, and cross-compiling that C toolchain for WASI or other unusual targets is its own project. uutils coreutils exists to close that specific gap: one Rust codebase, one build system, output and exit codes matched to GNU's, running natively on platforms GNU coreutils was never built for.

Best use cases

  • •Building a minimal Docker image or embedded Linux system where a single small multicall binary beats installing the full GNU package.
  • •Running the same shell scripts unmodified across Linux, macOS, and Windows without swapping in platform-specific utilities.
  • •Cross-compiling a userland for WASI or WebAssembly targets where GNU coreutils' C toolchain doesn't fit.
  • •Picking this project for a first Rust contribution — each utility lives in its own small uu_UTILNAME crate.

Related repositories

Source & attribution

Facts and quotes drawn from the uutils/coreutils GitHub repository and its README (github.com/uutils/coreutils).

GitHub data · last synced Aug 15, 2026Reviewed by Henry
← Back to TopGit

Is coreutils worth your time?

ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of coreutils.

GitHub