FLAGS: -H, --hidden Search hidden files and directories -I, --no-ignore Do not respect .(git|fd)ignore files --no-ignore-vcs Do not respect .gitignore files -s, --case-sensitive Case-sensitive search (default: smart case) -i, --ignore-case Case-insensitive search (default: smart case) -F, --fixed-strings Treat the pattern as a literal string -a, --absolute-path Show absolute instead of relative paths -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
OPTIONS: -d, --max-depth <depth> Set maximum search depth (default: none) -t, --type <filetype>... Filter by type: file (f), directory (d), symlink (l), executable (x) -e, --extension <ext>... Filter by file extension -x, --exec <cmd> Execute a command for each search result -E, --exclude <pattern>... Exclude entries that match the given glob pattern --ignore-file <path>... Add a custom ignore-file in .gitignore format -c, --color <when> When to use colors: never, *auto*, always -j, --threads <num> Set number of threads to use for searching & executing
ARGS: <pattern> the search pattern, a regular expression (optional) <path>... the root directory for the filesystem search (optional)
fd 使用实例
简单搜索
fd 只需带上一个需要查找的参数就可以执行最简单的搜索,该参数就是你要搜索的任何东西。例如:你想要找一个包含 pace 关键字的文件名或目录。