Linux find folder inside subfolders

findlinux

I am trying to find a directory named 480debugerror nested under child directories. I don't know the exact path, or even if I have the exact spelling of the directory I want to find.

Is there a Linux command to find directories with a given prefix or suffix, for example directories with a name of "debug" or "debug error", with some prefix or suffix that is unknown?

Best Answer

find is what you need:

$ find -type d -name '*debugerror*'

or

$ find -type d -name '480debugerror'

if you are certain about the folder name.

Related Question