LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2003, 08:21 AM   #1
jshearman
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Rep: Reputation: 0
tree


I am trying to get around rh9 and find it is not as easy as winME.
But it sure seems stable!
Can anyone help me with tree. I have tried to search my complete system for different files, but can't make the -P pattern so it understands me. I have used tree -aP http.conf plus other forms with wildcards but its obvious I don't know what I'm doing.
Thank you,
Jerry
 
Old 07-14-2003, 11:21 AM   #2
pavgust
Member
 
Registered: May 2003
Distribution: Debian
Posts: 40

Rep: Reputation: 15
try

find -name http.conf /
 
Old 07-14-2003, 11:40 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Isn't the syntax for the find command like this instead:
Code:
find [path...] [expression]
find / -name http.conf
 
Old 07-14-2003, 11:41 AM   #4
pavgust
Member
 
Registered: May 2003
Distribution: Debian
Posts: 40

Rep: Reputation: 15
d'oh... it is
 
Old 07-14-2003, 01:10 PM   #5
jshearman
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Original Poster
Rep: Reputation: 0
find

Thank you for your response.
What I was looking for was a equivelant to the search utility in winME. If your'e not familar with it, it will search which ever drive/drives that you want.
I just tried find /httpd.conf and all it did was do a minimum search.
Do you know if you can add switches to expand the search area?
Jerry
 
Old 07-14-2003, 01:22 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Unless I am miss-reading, the command you want to use is
Code:
find / -name http.conf
Not
Code:
find /httpd.conf
Also, you can look in the man page of find for more info.
Code:
man find
 
Old 07-14-2003, 10:21 PM   #7
jshearman
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Original Poster
Rep: Reputation: 0
find

Thank you I'll try it out.
Jerry
 
Old 07-14-2003, 10:42 PM   #8
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
You may also want to look at the "locate" command.

It searches a database instead of your harddrive.

Basically, you use the "updatedb" command to make the database of your harddrive.

Then you do a "locate [file/keyword]" and it will spit out where that file is or files w/ that keyword Instantly (because its searching a small database instead of the harddrive).

The downside is that you will only find files thats as up-to-date as the database, but you can update it any time you want.

This is one thing that makes linux great. I mean, its nice being able to search a whole harddrive instantly.

"man locate" , "man updatedb" for more info.
 
Old 07-14-2003, 10:58 PM   #9
jshearman
LQ Newbie
 
Registered: Jul 2003
Posts: 9

Original Poster
Rep: Reputation: 0
find

Thank you very much, with the (-) it kept searching until it found the exact match.
Have a nice day
Jerry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rm down the tree shanenin Linux - Software 2 04-02-2005 05:18 PM
dir tree tommytomato Linux - General 2 05-12-2004 09:10 PM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 05:28 PM
need a P-Tree (Patricia Tree) library manaskb Programming 1 11-02-2002 07:15 PM
tree tda Linux - Newbie 1 05-31-2002 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:41 AM.

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