Bugfixes
- Stop implying
--no-ignore-parentwhen--no-vcs-ignoreis supplied, see #907, #901, #908 (@tmccombs) - fd no longer waits for the whole traversal if the only matches arrive within max_buffer_time, see #868 and #895 (@tavianator)
--max-results=1now immediately quits after the first result, see #867 (@tavianator)fd -hdoes not panic anymore when stdout is closed, see #897
Changes
Performance improvements
- Colorized output is now significantly faster, see #720 and #853 (@tavianator)
- Writing to stdout is now buffered if the output does not go to a TTY. This increases performance
when the output offdis piped to another program or to a file, see #885 (@tmccombs, original
implementation by @sourlemon207) - File metadata is now cached between the different filters that require it (e.g.
--owner,
--size), reducing the number ofstatsyscalls when multiple filters are used; see #863
(@tavianator, original implementation by @alexmaco)
Features
- Don't buffer command output from
--execwhen using a single thread. See #522 - Add new
-q, --quietflag, see #303 (@Asha20) - Add new
--no-ignore-parentflag, see #787 (@will459) - Add new
--batch-sizeflag, see #410 (@devonhollowood) - Add opposing command-line options, see #595 (@Asha20)
- Add support for more filesystem indicators in
LS_COLORS, see
sharkdp/lscolors#35 (@tavianator)
Bugfixes
- Always show the
./prefix for search results unless the output is a TTY or--strip-cwd-prefixis set, see #760 and #861 (@jcaplan) - Set default path separator to
/in MSYS, see #537 and #730 (@aswild) - fd cannot search files under a RAM disk, see #752
- fd doesn't show substituted drive on Windows, see #365
- Properly handle write errors to devices that are full, see #737
- Use local time zone for time functions (
--change-newer-than,--change-older-than), see #631 (@jacobmischka) - Support
--list-detailson more platforms (like BusyBox), see #783 - The filters
--owner,--size, and--changed-{within,before}now apply to symbolic links
themselves, rather than the link target, except when--followis specified; see #863 - Change time comparisons to be exclusive, see #794 (@jacobmischka)
Changes
- Apply custom
--path-separatorto commands run with--exec(-batch)and--list-details, see #697 (@aswild)
Other
- Many documentation updates
Features
- Add new
--pruneflag, see #535 (@reima) - Improved the usability of the time-based options, see #624 and #645 (@gorogoroumaru)
- Add support for exact file sizes in the
--sizefilter, see #669 and #696 (@Rogach) fdnow prints an error message if the search pattern requires a leading dot but
--hiddenis not enabled (Unix only), see #615
Bugfixes
- Avoid panic when performing limited searches in directories with restricted permissions, see #678
- Invalid numeric command-line arguments are silently ignored, see #675
- Disable jemalloc on Android, see #662
- The
--helptext will be colorless ifNO_COLORhas been set, see #600 (@xanonid)
Changes
- If
LS_COLORSis not set (e.g. on Windows), we now provide a more comprehensive default which
includes much more filetypes, see #604 and #682 (mjsir911).
Other
Features
- Add new
--owner [user][:group]command-line option See #307 (pull #581) (@alexmaco)
This can be used to filter results by ownership:Note that the new option is currently not available on Windows.# files matching the 'exercise' pattern, owned by john fd exercise --type file --owner john # files/directories that are not owned by john fd --owner '!john' # … owned by the 'students' group fd --owner ':students' # … owned by the 'students' group, but not by john fd --owner '!john:students'
- Add support for a global ignore file (
~/.config/fd/ignoreon Unix), see #575 (@soedirgo) - Do not exit immediately if one of the search paths is missing, see #587 (@DJRHails)
Bugfixes
- Reverted a change from fd 8.0 that enabled colors on all Windows terminals (see below) in order to support older Windows versions again, see #577. Unfortunately, this re-opens #469
- Fix segfault caused by jemalloc on macOS Catalina, see #498
- Fix
--globbehavior with empty pattern, see #579 (@SeamusConnor) - Fix
--list-detailson FreeBSD, DragonFly BSD, OpenBSD and NetBSD. See #573 (@t6)
Changes
- Updated documentation for
--size, see #584
Features
- Add a new
-l/--list-detailsoption to show more details about the search results. This is
basically an alias for--exec-batch ls -lwith some additionallsoptions.
This can be used in order to: - Add a new
--max-results=<count>option to limit the number of search results, see #472, #476 and #555
This can be useful to speed up searches in cases where you know that there are only N results.
Using this option is also (slightly) faster than piping tohead -n <count>wherefdcan only
exit when it finds the search results<count> + 1. - Add the alias
-1for--max-results=1, see #561. (@SimplyDanny). - Add new
--type socketand--type pipefilters, see #511. - Add new
--min-depth <depth>and--exact-depth <depth>options in addition to the existing option
to limit the maximum depth. See #404. - Support additional ANSI font styles in
LS_COLORS: faint, slow blink, rapid blink, dimmed, hidden and strikethrough.
Bugfixes
- Preserve non-UTF8 filenames: invalid UTF-8 filenames are now properly passed to child-processes
when using--exec,--exec-batchor--list-details. Infd's output, we replace non-UTF-8
sequences with the "�" character. However, if the output offdgoes to another process, we
print the actual bytes of the filename. For more details, see #558 and #295. LS_COLORSentries with unsupported font styles are not completely ignored, see #552
Changes
- Colored output will now be enabled by default on older Windows versions.
This allows the use of colored output if the terminal supports it (e.g.
MinTTY, Git Bash). On the other hand, this will be a regression for users
on older Windows versions with terminals that do not support ANSI escape
sequences. Affected users can use an aliasfd="fd --color=never"to
continue usingfdwithout colors. There is no change of behavior for
Windows 10. See #469. - When using
--globin combination with--full-path, a*character does not match a path
separation character (/or\\) anymore. You can use**for that. This allows things like
fd -p -g '/some/base/path/*/*/*.txt'which would previously match to arbitrary depths (instead
of exactly two folders below/some/base/path. See #404. - "Legacy" support to use
fd -exec(with a single dash) has been removed. Usefd -xor
fd --execinstead. - Overall improved error handling and error messages.
Other
Features
- Added
--one-file-system(aliases:--mount,--xdev) to not cross file system boundaries on Unix and Windows, see #507 (@FallenWarrior2k). - Added
--base-directoryto change the working directory in whichfdis run, see #509 and #475 (@hajdamak). fdwill not use colored output if theNO_COLORenvironment variable is set, see #550 and #551 (@metadave).fd --execwill return exit code 1 if one of the executed commands fails, see #526 and #531 (@fusillicode and @Giuffre)
Bug Fixes
- Fixed 'command not found' error when using zsh completion, see #487 (@barskern).
fd -Lshould include broken symlinks, see #357 and #497 (@tommilligan, @neersighted and @sharkdp)- Display directories even if we don't have permission to enter, see #437 (@sharkdp)
Changes
Performance improvements
- Reduce number of
statsyscalls, improving the performance for searches where file metadata is
required (--type,--size,--changed-within, …), see #434 (@tavianator) - Use jemalloc by default, improving the performance for almost all searches, see #481. Note that
Windows and*musl*builds do not profit from this.
Features
- Added a new
-g/--globoption to switch to glob-based searches (instead of regular expression
based searches). This is accompanied by a new--regexoption that can be used to switch back,
if users want toalias fd="fd --glob". See #284 - Added a new
--path-separator <sep>option which can be useful for Windows users who
want/needfdto use/instead of\, see #428 and #153 (@mookid) - Added support for hidden files on Windows, see #379
- When
fdis run with the--exec-batch/-Xoption, it now exposes the exit status of the
command that was run, see #333. - Exit immediately when Ctrl-C has been pressed twice, see #423
Bugfixes
- Make
--changed-within/--changed-beforework for directories, see #470
Other
- Pre-built
fdbinaries should now be available forarmhftargets, see #457 (@detly) fdis now available on Alpine Linux, see #451 (@5paceToast)fdis now in the officla FreeBSD repositories, see #412 (@t6)- Added OpenBSD install instructions, see #421 (@evitalis)
- Added metadata to the Debian package, see #416 (@cathalgarvey)
fdcan be installed via npm, see #438 (@pablopunk)

