fzf Cheatsheet
fzf is a general-purpose command-line fuzzy finder for interactively filtering lists. Search files, command history, processes — pipe any list into fzf for instant filtering.
Updated: 2026-07-20·15 commands
Quick Start
``bash
# Interactive file search
fzf
# Search with preview fzf --preview 'bat --color=always {}'
# Pipe any list into fzf find . -name '*.py' | fzf --multi
# Search command history (default binding) # Press CTRL-R ``
Startup & Modes(15)
| Command | Level | ||
|---|---|---|---|
fzf --helpShow fzf help | Basic | fzf --help | |
fzfInteractive fuzzy search files in current dir | Basic | fzf | |
ctrl-tPaste selected file path in shell (default binding) | Basic | ctrl-t | |
ctrl-rSearch command history (default binding) | Basic | ctrl-r | |
alt-cSearch and cd into subdirectories | Basic | alt-c | |
find . -type f | fzfPipe file list to fzf for filtering | Basic | find . -type f | fzf | |
cat **Select file with fzf then cat (requires config) | Intermediate | cat **<tab> | |
kill -9 **Select process with fzf then kill | Intermediate | kill -9 **<tab> | |
fzf --previewPreview selected file content | Intermediate | fzf --preview 'cat {}' | |
fzf --multiEnable multi-select (Tab to mark) | Basic | fzf --multi | |
fzf --queryPre-fill search query | Basic | fzf --query 'config' | |
fzf --filterNon-interactive mode, output matches directly | Intermediate | fzf --filter='.py' < filelist.txt | |
fzf --bindCustom key bindings | Expert | fzf --bind 'ctrl-d:reload(find . -type d)' | |
export FZF_DEFAULT_COMMANDSet default search command | Intermediate | export FZF_DEFAULT_COMMAND='fd --type f' | |
export FZF_DEFAULT_OPTSSet default options | Intermediate | export FZF_DEFAULT_OPTS='--height 40% --layout=reverse' |
FAQ
This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.