HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fzf — Fuzzy finder. Similar to `sk`. More information: <https://github.com/junegunn/fzf#usage>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfzffindersimilarcliinformationfuzzymore

Problem

How to use the fzf command: Fuzzy finder. Similar to sk. More information: <https://github.com/junegunn/fzf#usage>.

Solution

fzf — Fuzzy finder. Similar to sk. More information: <https://github.com/junegunn/fzf#usage>.

Start fzf on all files in the specified directory:
find {{path/to/directory}} -type f | fzf


Start fzf for running processes:
ps aux | fzf


Select multiple files with <Shift Tab> and write to a file:
find {{path/to/directory}} -type f | fzf {{[-m|--multi]}} > {{path/to/file}}


Start fzf with a specified query:
fzf {{[-q|--query]}} "{{query}}"


Start fzf on entries that start with core and end with either go, rb, or py:
fzf {{[-q|--query]}} "^core go$ | rb$ | py$"


Start fzf on entries that do not match pyc and contain travis:
fzf {{[-q|--query]}} '!pyc travis'

Code Snippets

Start `fzf` on all files in the specified directory

find {{path/to/directory}} -type f | fzf

Start `fzf` for running processes

ps aux | fzf

Select multiple files with `<Shift Tab>` and write to a file

find {{path/to/directory}} -type f | fzf {{[-m|--multi]}} > {{path/to/file}}

Start `fzf` with a specified query

fzf {{[-q|--query]}} "{{query}}"

Start `fzf` on entries that start with `core` and end with either `go`, `rb`, or `py`

fzf {{[-q|--query]}} "^core go$ | rb$ | py$"

Context

tldr-pages: common/fzf

Revisions (0)

No revisions yet.