Forrest logo
back to the find tool

find:ai:8c4e8

how do I search for a file with a particular string in the name
$ find . -name '*{string}*'
try on your machine

This command searches for files in the current directory and its subdirectories. Replace '{string}' with the desired string you want to search for in the file name.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how do I search for a file with a particular string in the name?
back to the find tool