2026 Modern CLI Cheat Sheet: Rust GNU Replacements [Deep Dive]
The GNU Coreutils have served developers for decades, but in 2026, the terminal landscape has shifted toward high-performance, memory-safe alternatives. Written primarily in Rust, these modern tools leverage multi-core processing, SIMD instructions, and human-centric UI designs to transform the command-line experience.
Type to filter the cheat sheet below.
Coreutils vs. Rust Alternatives
| Legacy (GNU) | Modern (Rust) | Primary Advantage |
|---|---|---|
| ls | eza | Icons, Git status, tree view |
| cat | bat | Syntax highlighting, line numbers |
| grep | rg (ripgrep) | Extreme speed, .gitignore respect |
| find | fd | Simplified syntax, regex by default |
| cd | zoxide | Smart fuzzy jumping based on usage |
| sed | sd | Intuitive find-and-replace strings |
| top | btm (bottom) | Visual TUI, better resource breakdown |
| du | dust | Visual tree-based disk usage |
| curl | xh | Simplified headers, automatic JSON format |
File Navigation & Search
eza: The Modern ls
eza replaces the aging ls with better colors, icons, and native Git support.
# List all files with icons and git status
eza -al --icons --gitfd: The find Replacement
Unlike find, fd uses regex by default and ignores hidden files/git folders automatically.
# Find all .js files containing 'api'
fd -e js apiText Processing & Viewing
ripgrep (rg): Recursive Search
ripgrep is arguably the most successful Rust tool to date, outperforming grep, ack, and ag in almost every benchmark.
# Search for a pattern across all files, respecting .gitignore
rg "const API_KEY"The Rust Renaissance in System Tools
The shift from GNU Coreutils to Rust-based alternatives isn't just about memory safety. It's about taking advantage of multicore SIMD instructions, sensible defaults (like automatic .gitignore filtering in ripgrep), and human-centric output that leverages 24-bit color and improved readability.
bat: Common Keyboard Shortcuts
Since bat acts as a pager (integrating less), these shortcuts are essential for efficient viewing:
| Key | Action |
|---|---|
| / | Enter search mode |
| n / N | Next / Previous search match |
| g / G | Jump to Top / Bottom |
| q | Quit |
Configuration & Aliases
To truly replace GNU tools, you should alias them in your .zshrc or .bashrc. If you are writing complex automation scripts, we recommend using our Code Formatter to ensure your shell script syntax remains clean and portable.
# Standard Aliases for Modern Shells
alias ls='eza --icons --git'
alias cat='bat'
alias grep='rg'
alias find='fd'
alias cd='z'
alias top='btm'
alias du='dust'Advanced Usage Patterns
The real power of these tools comes from combining them. Because tools like fd and xh support structured output, they pipe into each other more predictably than legacy utilities.
# Batch process files found by fd with sd
fd -e txt -x sd 'old-api' 'new-api' {}Get Engineering Deep-Dives in Your Inbox
Weekly breakdowns of architecture, security, and developer tooling — no fluff.