fd
​fd is a user friendly replacement for find.
  • How to include hidden files and directories for searches?
    1
    fd 'ipa.*.crt' ~/ -H
    Copied!
  • 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:
    1
    fd --extension txt
    Copied!
  • Open a file found via fd,
    1
    fd 'Math.*.pdf' -x open
    Copied!
    Use -x flag for executing a command.
Last modified 2yr ago
Copy link