Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

linuxutils is a suite of Linux command-line utilities written from scratch in Rust as a clean-room, permissively-licensed reimplementation of the tools traditionally provided by util-linux, plus the kernel-module tools from kmod.

Each tool aims to be a drop-in replacement for its upstream counterpart, taking the opportunity to clean up rough edges where doing so does not break existing use cases.

The project also provides ABI-compatible reimplementations of the original C libraries (libblkid, libfdisk, libmount, libsmartcols, libuuid) as shared libraries (cdylibs), so existing C/C++ code that links against them continues to work.

Project Structure

Tools are grouped into per-category crates with one cargo feature per tool, so you can install the full bundle or pick individual tools:

CrateTools
linuxutils-diskblock devices, filesystem images
linuxutils-kmodkernel module management
linuxutils-loginlogin-related utilities
linuxutils-miscmiscellaneous tools
linuxutils-schedprocess and I/O scheduling
linuxutils-systemsystem administration tools
linuxutils-termterminal-facing tools
linuxutils-texttext processing

A multicall binary (linuxutils) is also published, dispatching to any tool by argv[0] or as a subcommand — useful for container images and minimal installs.

Source Code

The source is available on GitHub.