How do I search for a file in a directory using the terminal?

I'm trying to locate a file in a huge directory with a lot of other subdirectories and files.

What's the easiest way to find a given file_name.x in such directory tree?

Upvotes: 0

Views: 234

Answers (1)

You could try

find path_to_huge_directory -type f -name "file_name.x"

This will search through all files in that directory and its subdirectories.

Upvotes: 2

Related Questions