Skip to content

Nice to Know

Herafter a list of handy nict to know CLI tools. Many of them are written in rust.

Check out also Rust Utils

Tool Replaces Type Example Description
bat cat Pager bat src/main.rs View files with syntax highlighting and Git integration
exa ls Listing exa -l -G List files with extended details and colored output
dust du Disk Usage dust -n 10 Visualize disk usage of the current directory
duf du Disk Usage duf -s Display disk usage with a simple and interactive interface
procs ps Process Viewer procs -a List all processes with a concise and readable format
skim fzf Fuzzy Finder ls | skim Fuzzy Finder, integrated with commands for interactive file selection
ripgrep grep Search rg -i TODO src/ Recursively searches directories for a regex pattern
fd find Search fd '*.rs' Find files, user-friendlier than find
hyperfine - Benchmark hyperfine 'cargo build' Measure the execution time of 'cargo build' command
tokei - Code Statistics tokei src/ Generate code statistics for the Rust source directory
delta diff Visual Diff git diff | delta Enhance the git diff output with improved layout and styling
zenith top Resource viewer zenith Zenith - sort of like top or htop but with zoom-able charts, network, and disk usage.

Commonly used commands

skim in interactive mode with preview script and bind Ctrl-Y to copy filename and F4 open in Sublime Text

sk --ansi -i -c 'ag --color "{}"' --preview "./preview.sh {}" --bind 'f3:execute(subl -f {}),ctrl-y:execute-silent(echo {} | pbcopy)+abort'
exa -la