Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I am in a particular directory path, I want to search for all files in any folder/sub-folder.

How can I do this?

share|improve this question

2 Answers 2

up vote 9 down vote accepted

In a terminal:

To list all files in the current directory and all sub-directories:

$ find .

To search for a file by name in the current directory and all sub-directories:

$ find . -name <file_name>

Or to search in all files in the current directory and all sub-directories for a particular string:

$ grep -R "<string>" *
share|improve this answer

If you want GUI search with subdirectories, use gnome-search-tool . You can find it in the Ubuntu Software Center (12.04 - precise penguin) or you can install it directly in terminal:

sudo apt-get install gnome-search-tool
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.