cheat:fd
# Simple search:
fd <search query>
# Specifying the root directory for the search:
fd <search query> <directory>
# Searching for a particular file extension:
fd -e <file extension> <search query>
# Searching for a particular file name:
fd -g <file name>.<file extension>
# Search for hidden and ignored files:
fd -H <search query>
# Excluding specific files or directories:
fd -E <file or directories which should be excluded> <search query>
tldr:fd
# 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 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
$
cheat.sh