LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-01-2007, 10:57 AM   #1
subnet_rx
Member
 
Registered: Oct 2001
Distribution: Ubuntu 9.10
Posts: 148

Rep: Reputation: 15
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.
 
Old 09-01-2007, 11:22 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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)
 
Old 09-01-2007, 11:29 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can also try
Code:
#find / -type d -wholename "*apache/src"
 
Old 09-01-2007, 11:44 AM   #4
subnet_rx
Member
 
Registered: Oct 2001
Distribution: Ubuntu 9.10
Posts: 148

Original Poster
Rep: Reputation: 15
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.
 
Old 09-02-2007, 07:32 AM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
kfind
is also a nice frontend

Regards
 
Old 09-03-2007, 02:27 AM   #6
malan_in
LQ Newbie
 
Registered: Sep 2007
Distribution: redhat, debian, suse, fedora, ubuntu
Posts: 18

Rep: Reputation: 0
Quote:
Originally Posted by subnet_rx View Post
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
 
  


Reply

Tags
find



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Compiling in any folder will install in current or correct folder ? anjanesh Fedora 4 05-10-2006 08:44 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
Finding Source Folder lectraplayer Linux - Newbie 5 10-15-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration