1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:22:09 +02:00
tldr/pages/common/fd.md
2020-12-12 03:12:55 +00:00

29 lines
615 B
Markdown

# fd
> An alternative to `find`.
> Aims to be faster and easier to use than `find`.
> More information: <https://github.com/sharkdp/fd>.
- Recursively find files matching the given pattern in the current directory:
`fd {{pattern}}`
- Find files that begin with "foo":
`fd {{'^foo'}}`
- Find files with a specific extension:
`fd --extension {{txt}}`
- Find files in a specific directory:
`fd {{pattern}} {{path/to/directory}}`
- Include ignored and hidden files in the search:
`fd --hidden --no-ignore {{pattern}}`
- Execute a command on each search result returned:
`fd {{pattern}} --exec {{command}}`