Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Emerson Gutierrez
Emerson Gutierrez
5,780 Points

Is there any way to search for a part of the file name?

With find . -name "search" I can find a file by it's filename, but there is a way to find a file that I know o remember only part of it's name?

1 Answer

Sue Dough
Sue Dough
35,800 Points

Yes. Use * for wildcard

find -name "sea*"

This will find anything starting from sea

you can get fancy and do it both ways

find -name "*se*"