LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Finding a folder name? (http://www.linuxquestions.org/questions/linux-general-1/finding-a-folder-name-581474/)

subnet_rx 09-01-2007 11:57 AM

Finding a folder name?
 
How do I find all folders with a specific name? I'm specifically looking for apache/src but all the find commands I run just come up with hundreds of different folders.

pixellany 09-01-2007 12:22 PM

find / -name apache (all directories or files named "apache")

find /usr -name apache (all directories or files in /usr named "apache")

find / -name src | grep apache (all directories or files named "src" with "apache" in the pathname)

reddazz 09-01-2007 12:29 PM

You can also try
Code:

#find / -type d -wholename "*apache/src"

subnet_rx 09-01-2007 12:44 PM

Thanks for the replies. Those definitely worked, but still having problems finding it. Going to contact my VPS provider, see if they can tell me.

frenchn00b 09-02-2007 08:32 AM

kfind
is also a nice frontend

Regards

malan_in 09-03-2007 03:27 AM

Quote:

Originally Posted by subnet_rx (Post 2877847)
How do I find all folders with a specific name? I'm specifically looking for apache/src but all the find commands I run just come up with hundreds of different folders.



simply use


find / -name <foldername>

or

find <specfic folder> -name <find_foldername>

eg: find / -name squid


All times are GMT -5. The time now is 09:35 PM.