LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Searching (http://www.linuxquestions.org/questions/linux-newbie-8/searching-22674/)

mjgeiger 06-05-2002 03:37 PM

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!

jpweston 06-05-2002 03:58 PM

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.

mirkokl 06-05-2002 04:35 PM

If you have installed locate, run locate <string>

trickykid 06-05-2002 06:38 PM

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

mjgeiger 06-05-2002 08:26 PM

Thank you!


All times are GMT -5. The time now is 10:14 PM.