knowledge/technology/applications/cli/fd.md
2023-12-04 11:02:23 +01:00

22 lines
No EOL
851 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
obj: application
os: linux
repo: https://github.com/sharkdp/fd
---
# fd
`fd` is a program to find entries in your filesystem. It is a simple, fast and user-friendly alternative to [`find`](https://www.gnu.org/software/findutils/). While it does not aim to support all of `find`'s powerful functionality, it provides sensible (opinionated) defaults for a majority of use cases.
## Usage
Flags:
```shell
-H, --hidden Include hidden files
-d, --max-depth <depth> Limit recursion
-e, --extension <ext> Search by extension
-x, --exec <cmd>... Execute command for every search result.
The following placeholders are substituted before the command is executed:
'{}':   path (of the current search result)
'{/}':  basename
'{//}': parent directory
'{.}':  path without file extension
'{/.}': basename without file extension
```