fd
An alternative tofind
. Aims to be faster and easier to use thanfind
. More information: https://github.com/sharkdp/fd.
-
Recursively find files matching a specific pattern in the current directory:
fd "{{string|regex}}"
-
Find files that begin with
foo
:
fd "^foo"
-
Find files with a specific extension:
fd --extension txt
-
Find files in a specific directory:
fd "{{string|regex}}" {{path/to/directory}}
-
Include ignored and hidden files in the search:
fd --hidden --no-ignore "{{string|regex}}"
-
Execute a command on each search result returned:
fd "{{string|regex}}" --exec {{command}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.