fd

Dev tools

file search cli

SHOW HN2017

Legend

fd

A simple, fast and user-friendly alternative to find, written in Rust

github.com

#find alternative#rust#file search#gitignore#command line

456points
215comments
#26of 2,242 in 2017
Top 2%of 2017 by points

How HN took it

CuriousMostly questions and neutral comments

16 positive, 36 neutral or asking, 1 mixed, 13 critical, out of 66 comments about the project. Thread score +0.01.

Idea: 4 for, 6 againstDesign: 6 for, 4 againstPerformance: 4 for, 1 againstPrivacy: 0 for, 1 againstDocs: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple, sensible defaults that are easy to learn

    From 1 comment
    • Yes I'll agree with the people who say that this isn't a drop in replacement (fewer features and different syntax) but I also just don't care. fd's defaults are brilliantly…
      fuzzygroup on HN
  • Very fast, faster than find and zsh globbing

    From 3 comments
    • It is incredibly fast! Thanks a lot for this great tool!
      benmarten on HN
    • fd is about a factor of 2-3 faster (for this example): ``` > time fd -HIe jpg > /dev/null 5,12s user 2,03s system 785% cpu 0,911 total > time ag --depth 100 -uuu -g '\.jpg$' >…
      sharkdp on HN
    • zsh globs are about a factor of 5 slower (for this example): ``` > time fd -sIe jpg > /dev/null 1,24s user 0,77s system 758% cpu 0,265 total > time ls ~/**/*.jpg > /dev/null…
      sharkdp on HN

Objections

  • Not a drop-in replacement for find; lacks -exec, -delete, -mtime

    From 4 comments
    • I'm sorry to be something of a negative Nancy - and I'm sure I'm a corner case - but this is not really an alternative to find. It's an alternative for your editor's fuzzy find…
      falcolas on HN
    • My main usecase for find is not only finding files, but to do actions on them through -exec. Unless I’m missing something, that’s not supported with this tool.
      josteink on HN
    • It's strange to advertise this as a find(1) replacement when it covers maybe 1% of find(1) use cases. ``` find -type d -empty -delete find -type l -exec readlink -f {} + ``` etc.…
      majewsky on HN
    • Any plan to provide find compatibility for drop-in replacement? My find/locate usage patterns are not worth learning new sophisticated tool for 5sec speedup once a week, and I…
      wruza on HN
  • Name and find-alternative framing overstates coverage

    From 2 comments
    • I'm sorry to be something of a negative Nancy - and I'm sure I'm a corner case - but this is not really an alternative to find. It's an alternative for your editor's fuzzy find…
      falcolas on HN
    • It's strange to advertise this as a find(1) replacement when it covers maybe 1% of find(1) use cases. ``` find -type d -empty -delete find -type l -exec readlink -f {} + ``` etc.…
      majewsky on HN

Requests

  • Add -exec or file actions after finding

    From 2 comments
    • My main usecase for find is not only finding files, but to do actions on them through -exec. Unless I’m missing something, that’s not supported with this tool.
      josteink on HN
    • It's exciting to see so many problem solvers use Rust to improve core linux utilities. I've been using Exa as an 'ls' replacement for some time now. 'fd' looks promising but has…
      Dowwie on HN
  • Add find compatibility

    From 1 comment
    • Any plan to provide find compatibility for drop-in replacement? My find/locate usage patterns are not worth learning new sophisticated tool for 5sec speedup once a week, and I…
      wruza on HN

Questions

  • How does speed compare to ag and find?

    From 2 comments
  • Were benchmarks run with cold cache?

    From 1 comment
    • For the benchmarks did you clear the page cache inbetween runs? It’s crazy fast and seems a little suspect
      xfactor973 on HN

Alternatives named

  • find

    From 1 comment
    • I'm sorry to be something of a negative Nancy - and I'm sure I'm a corner case - but this is not really an alternative to find. It's an alternative for your editor's fuzzy find…
      falcolas on HN
  • ag (the silver searcher)

    From 1 comment
    • How does it compare in speed to 'ag' (i.e the silver searcher) -g option?
      jnwatson on HN
  • fzf

    From 1 comment
    • I've found that fzf has replaced all uses of find for me except in scripts. fzf has the benefits of being bound to a single key binding and showing me results as I type, rather…
      z1mm32m4n on HN
  • zsh globbing

    From 1 comment
    • I wonder how this compares to the speed of zsh's globbing, which is what I've mostly switched to using instead of find.
      pmoriarty on HN
  • FDclone

    From 1 comment
    • I'm sorry to be something of a negative Nancy - and I'm sure I'm a corner case - but this is not really an alternative to find. It's an alternative for your editor's fuzzy find…
      falcolas on HN
  • ripgrep

    From 1 comment
    • It would be nice to have a collection of modern/faster/saner alternatives to common unix tools and such utilities (made in rust or not) that becomes standard -- or at least…
      coldtea on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/15429390)