A simple, fast and user-friendly alternative to 'find'
A simple, fast and user-friendly alternative to 'find'
A simple, fast and user-friendly alternative to 'find'
-l
/--list-details
option to show more details about the search results. This is
basically an alias for --exec-batch ls -l
with some additional ls
options.
This can be used in order to:
--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 to head -n <count>
where fd
can only
exit when it finds the search results <count> + 1
.-1
for --max-results=1
, see #561. (@SimplyDanny).--type socket
and --type pipe
filters, see #511.--min-depth <depth>
and --exact-depth <depth>
options in addition to the existing option
to limit the maximum depth. See #404.LS_COLORS
: faint, slow blink, rapid blink, dimmed, hidden and strikethrough.--exec
, --exec-batch
or --list-details
. In fd
's output, we replace non-UTF-8
sequences with the "�" character. However, if the output of fd
goes to another process, we
print the actual bytes of the filename. For more details, see #558 and #295.LS_COLORS
entries with unsupported font styles are not completely ignored, see #552fd="fd --color=never"
to
continue using fd
without colors. There is no change of behavior for
Windows 10. See #469.--glob
in 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.fd -exec
(with a single dash) has been removed. Use fd -x
or
fd --exec
instead.ls
as an optional dependency for fd
to make full use of fd
s new -l
/--list-details
option. For MacOS, fd
relies on gls
which should be available via coreutils
.