LinuxQuestions.org

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

subnet_rx 09-01-2007 10: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 11:22 AM

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 11:29 AM

You can also try
Code:

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

subnet_rx 09-01-2007 11:44 AM

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 07:32 AM

kfind
is also a nice frontend

Regards

malan_in 09-03-2007 02: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 11:18 AM.