Skip to main content

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)

CommandLevel
fzf --help
Show fzf help
Basic
fzf
Interactive fuzzy search files in current dir
Basic
ctrl-t
Paste selected file path in shell (default binding)
Basic
ctrl-r
Search command history (default binding)
Basic
alt-c
Search and cd into subdirectories
Basic
find . -type f | fzf
Pipe file list to fzf for filtering
Basic
cat **
Select file with fzf then cat (requires config)
Intermediate
kill -9 **
Select process with fzf then kill
Intermediate
fzf --preview
Preview selected file content
Intermediate
fzf --multi
Enable multi-select (Tab to mark)
Basic
fzf --query
Pre-fill search query
Basic
fzf --filter
Non-interactive mode, output matches directly
Intermediate
fzf --bind
Custom key bindings
Expert
export FZF_DEFAULT_COMMAND
Set default search command
Intermediate
export FZF_DEFAULT_OPTS
Set default options
Intermediate

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.