LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-05-2002, 02:37 PM   #1
mjgeiger
LQ Newbie
 
Registered: Mar 2002
Location: Stoughton, MA
Distribution: Gentoo 1.4rc?, it's all good.....
Posts: 19

Rep: Reputation: 0
Question Searching


Hello all,

I just wanted to know how to search through all of my files while looking for a certain string in the name of the file. I am trying to do this on the prompt, not in a GUI.

If you have a link or website where I can just read up on this, just point me in the right directions.

Thanks!
 
Old 06-05-2002, 02:58 PM   #2
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
If you're just looking for a string in the file name, you can do the following:
Code:
find / -name *string* -print
Now, the above command would need to be run at root as it goes through all directories - beginning at root - and checks all files.

Do man find for more info. on the command so you can tailor it to your specific needs.

j.
 
Old 06-05-2002, 03:35 PM   #3
mirkokl
LQ Newbie
 
Registered: May 2002
Posts: 20

Rep: Reputation: 0
If you have installed locate, run locate <string>
 
Old 06-05-2002, 05:38 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Re: Searching

Quote:
Originally posted by mjgeiger
If you have a link or website where I can just read up on this, just point me in the right directions.
It was under your nose all along in the LQ Glossary: http://www.linuxquestions.org/questi...ryid=19&long=1
 
Old 06-05-2002, 07:26 PM   #5
mjgeiger
LQ Newbie
 
Registered: Mar 2002
Location: Stoughton, MA
Distribution: Gentoo 1.4rc?, it's all good.....
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you!
 
  


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
Searching for HotSpots? carlosinfl Linux - Wireless Networking 4 02-23-2005 09:17 PM
searching for a application ??? MeTaL-NL Linux - Software 2 02-22-2005 07:47 AM
Searching ??? ilnli Linux - General 5 01-03-2005 04:27 AM
searching zoodle General 3 01-02-2005 08:11 PM
I have been searching but.... Jacksenflamed Linux - Newbie 6 03-17-2004 08:26 PM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration