Rust has become the dominant language for building next-generation CLI tools due to its performance, memory safety, and excellent concurrency support. These tools are redefining what's possible in shell environments.
- Zero-cost abstractions: As fast as C, but safer
- Memory safety: No buffer overflows or use-after-free bugs
- Fearless concurrency: Thread-safe by default
- Small binaries: Minimal runtime overhead
Developer Experience
- Excellent error handling:
Result<T, E> type system
- Rich ecosystem: Crates.io package registry
- Cross-compilation: Easy multi-platform builds
- Built-in testing: First-class testing support
File System & Navigation
| Tool |
Description |
Installation |
exa |
Modern ls replacement |
cargo install exa |
lsd |
LSD-themed ls |
cargo install lsd |
fd |
Fast, user-friendly find |
cargo install fd-find |
bat |
Cat with wings |
cargo install bat |
ripgrep |
Lightning-fast grep |
cargo install ripgrep |
dust |
More intuitive du |
cargo install du-dust |
broot |
Interactive tree view |
cargo install broot |
zoxide |
Smarter cd |
cargo install zoxide |
System Monitoring
| Tool |
Description |
Installation |
procs |
Modern ps |
cargo install procs |
bottom |
Graphical top |
cargo install bottom |
zenith |
GPU-aware system monitor |
cargo install zenith |
gping |
Graphical ping |
cargo install gping |
bandwhich |
Network bandwidth monitor |
cargo install bandwhich |
Development & Text Processing
| Tool |
Description |
Installation |
delta |
Syntax-highlighted diffs |
cargo install git-delta |
sd |
Intuitive find & replace |
cargo install sd |
choose |
Human-friendly cut |
cargo install choose |
huniq |
Faster uniq |
cargo install huniq |
xh |
Friendly HTTP client |
cargo install xh |
oha |
HTTP load generator |
cargo install oha |
Productivity & Shell Enhancement
| Tool |
Description |
Installation |
atuin |
Sync shell history |
cargo install atuin |
starship |
Minimal, blazing-fast prompt |
cargo install starship |
zellij |
Terminal workspace |
cargo install zellij |
nushell |
Modern shell |
cargo install nu |
just |
Command runner |
cargo install just |
๐ง Installation Methods
Cargo (Recommended)
| # Install Rust and Cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install tools
cargo install exa fd-find ripgrep bat procs
|
Package Managers
| # macOS (Homebrew)
brew install exa fd ripgrep bat procs
# Ubuntu/Debian
apt install exa fd-find ripgrep bat procs
# Arch Linux
pacman -S exa fd ripgrep bat procs
|
Pre-built Binaries
Most Rust tools provide pre-built binaries:
| # Download from GitHub releases
curl -L https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
|
๐ ๏ธ Integration Examples
Shell Configuration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | # ~/.bashrc or ~/.zshrc
export BAT_THEME="GitHub"
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
# Aliases
alias ls='exa --icons --git'
alias cat='bat --paging=never'
alias grep='rg --smart-case'
alias find='fd'
alias ps='procs'
alias du='dust'
# Functions
rgf() {
rg --files | rg "$@"
}
|
Configuration Files
| # ~/.ripgreprc
--smart-case
--hidden
--glob=!.git/*
--glob=!target/*
--glob=!node_modules/*
|
Ripgrep vs Grep
| # Searching Linux kernel source (5GB)
grep -r "function_name" . # 2.3s
rg "function_name" . # 0.15s (15x faster)
|
FD vs Find
| # Finding all .rs files
find . -name "*.rs" # 0.8s
fd -e rs # 0.05s (16x faster)
|
๐งพ Summary
โ
Performance: Rust tools are typically 10-100x faster than classic tools
โ
Safety: Memory-safe with excellent error handling
โ
Features: Modern UI, colors, Git integration, JSON output
โ
Ecosystem: Rapidly growing with excellent documentation
โ
Compatibility: Maintains CLI compatibility with classic tools
๐งพ See Also