CLI Tools Cheatsheet

zoxide · eza · fd · fzf · ripgrep · OpenSUSE Tumbleweed

zoxide z

z foo
Jump to best match for "foo"
z foo bar
Match directory containing both terms
z foo/
Jump to relative subdirectory
z ..
Go up one level
z -
Jump to previous directory
zi foo
Interactive pick with fzf
z foo Tab
Show completions interactively
zoxide query -l
List all tracked directories

eza ls

ls
List with icons eza --icons
ll
Long list, all metadata eza -la --icons --git
la
Long list + hidden files eza -lah --icons --git
eza -T
Tree view (full depth)
eza -T -L 2
Tree view, 2 levels deep
eza --git
Show git status per file
eza --sort=size
Sort by file size
eza --sort=modified
Sort by modified date

fd find

fd pattern
Find files by name (fuzzy, case-smart)
fd -e py
Find by extension (.py files)
fd -t d pattern
Find directories only
fd -t l pattern
Find symlinks only
fd -H pattern
Include hidden files/dirs
fd -I pattern
Ignore .gitignore rules
fd --changed-within 1d
Files modified in last day
fd -e jpg -x cmd {}
Execute cmd per result parallel
fd -e jpg -X cmd
Execute cmd with all results at once

fzf

Shell Key Bindings
Ctrl+T
Insert file/dir path onto line
Ctrl+R
Fuzzy search command history
Alt+C
cd into selected directory
Fuzzy Completion
vim **Tab
Fuzzy-complete file path
cd **Tab
Fuzzy-complete directory
kill **Tab
Fuzzy-complete process PID
ssh **Tab
Fuzzy-complete hostname
Usage
cmd | fzf
Pipe any list into fzf
vim $(fzf)
Select file then open in vim
Search Syntax (inside fzf)
term
Fuzzy match
'exact
Exact match (substring)
^prefix
Match at start of string
suffix$
Match at end of string
!term
Exclude — inverse match
a | b
OR — match either term
a b
AND — match both terms
Inside fzf UI
Tab / Shift+Tab
Mark / unmark (multi-select)
Ctrl+C / Esc
Cancel / exit
Enter
Confirm selection

ripgrep rg

rg pattern
Search in all files (respects .gitignore)
rg -i pattern
Case-insensitive search
rg -w pattern
Whole word match only
rg -t py pattern
Search in Python files only
rg -l pattern
List matching filenames only
rg -c pattern
Count matches per file
rg -C 3 pattern
Show 3 lines of context around match
rg -u pattern
Include gitignored files
rg --hidden pattern
Include hidden files/dirs
rg -e p1 -e p2
Multiple patterns (OR)

Power Combos

zi
zoxide + fzf: pick recent dir interactively
fd -e md | fzf
Find Markdown files, pick one with fzf
rg -l pat | fzf
Find files with match, pick one interactively
rgf pattern
rg results in fzf with bat preview pane
vim $(fd -e py | fzf)
Find Python file → pick → open in vim
eza -T | rg pattern
Search within tree output
fd -x rg pat {}
Find files then search within each
ll | rg pattern
Filter long listing by pattern
fd -e log -x bat
Find all .log files and view with bat