FZF Commands Cheat Sheet
Here is a cli commands cheat sheet for FZF command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.
What is FZF command?
Add some data here
# To fuzzy find files in current directory fzf # To fuzzy find a file and cat it cat $(fzf) # Case sensitive search fzf +i # Case insensitve search fzf -i # Select multiple files (TAB to select, Shift+TAB to un-select) to delete rm -rf $(fzf --multi) # Run a preview command with fzf, specifiy a command inside the double quotes. fzf --preview "file {}" # Find files from find command and preview it with fzf find . -type f -name "*.txt" | fzf --preview "head {}" # Display border around fzf output fzf --border sharp # Output only selected files and pipe it to a file find . -type f "*.txt" | fzf --multi > output.txt
Check out the FZF command documentation .
You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again