fd is a user friendly replacement for find.

  • How to include hidden files and directories for searches?

    fd 'ipa.*.crt' ~/ -H
  • Uses smartcase by default, which means if the search term is in lowercase, the search is done in case-insensitive manner. But if the search term contains Capital letters the search is done in a case-sensitive manner.

  • Find files with a specific extension:

    fd --extension txt
  • Open a file found via fd,

    fd 'Math.*.pdf' -x open

    Use -x flag for executing a command.

Last updated