# fd

[fd](https://github.com/sharkdp/fd) is a user friendly replacement for [find](http://man7.org/linux/man-pages/man1/find.1.html).

* How to include hidden files and directories for searches?

  ```bash
  fd 'ipa.*.crt' ~/ -H
  ```
* Uses smartcase by default, which means if the search term is in lowercase, the search is done in case-insensitive manner. But if the search term contains Capital letters the search is done in a case-sensitive manner.
* Find files with a specific extension:

  ```bash
  fd --extension txt
  ```
* Open a file found via `fd`,

  ```bash
  fd 'Math.*.pdf' -x open
  ```

  Use `-x` flag for executing a command.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.dewaka.com/cli/fd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
