fd <pattern> [path...]
A simple, fast and user-friendly alternative to 'find'
Arguments
Name | Description |
---|
pattern | The search pattern - a regular expression unless '--glob' is used (optional) |
path | The root directories for the filesystem search |
Options
Name | Description |
---|
-H, --hidden | Search hidden files and directories |
-I, --no-ignore | Do not respect .(git|fd)ignore files |
-s, --case-sensitive | Case-sensitive search (default: smart case) |
-i, --ignore-case | Case-insensitive search (default: smart case) |
-g, --glob | Glob-based search (default: regular expression) |
-a, --absolute-path | Show absolute instead of relative paths |
-l, --list-details | Use a long listing format with file metadata |
-L, --follow | Follow symbolic links |
-p, --full-path | Search full path (default: file-/dirname only) |
-0, --print0 | Separate results by the null character |
-h, --help | Prints help information |
-V, --version | Prints version information |
-d, --max-depth <depth> | Set maximum search depth |
-t, --type <filetype> | |
-e, --extension <file extension> | |
-x, --exec <cmd> | Execute a command for each search result |
-X, --exec-batch <cmd> | Execute a command with all search results at once |
-E, --exclude <pattern> | |
-c, --color <when> | When to use colors |
-S, --size <size> | Limit results based on the size of files |
--changed-within <date> | Filter by file modification time (newer than) |
--changed-before <date> | Filter by file modification time (older than) |