There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Don't know where a file is and need to find it?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
lotuseclat79's Avatar
Distinguished Member with 10,007 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
23-Jan-2008, 11:08 AM #1
Don't know where a file is and need to find it?
Misplace a file? Find it quick!.

Discusses: whereis, locate and find commands.

There is also the which command to find executables that is not discussed. I must admit, I have never used the (s)locate command, as I am an old hand at using the find command.

My favorite way to use the find command is to use the -exec feature to scan for strings in files that match the scan criteria, for example:

$ find . -name "*.txt" -exec grep -i foo {} \; -print

The above find command starts in the current directory '.', matches on any file named with the .txt suffix, and then executes the grep command, case insensitive (-i) to look for the character string "foo" in each located .txt file, and lastly prints the results of the grep on the located files only.

Don't know what grep does? Issue the command: man grep

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction between a mere artisan or specialist and a real seeker after truth. - Einstein wrote in 1944.

Some say knowledge is power, I say knowledge without action is powerless. - lotuseclat79

Don't confuse action with movement. - Hemingway to Gardner

Imagination is more important than knowledge. - Einstein
TRS-80 vet's Avatar
Distinguished Member with 2,591 posts.
 
Join Date: Jun 2005
Experience: Beginnerd/Mensan -
23-Jan-2008, 02:38 PM #2
Mods; make a sticky
bearone2's Avatar
Distinguished Member with 5,841 posts.
 
Join Date: Jun 2004
Location: hawaii
Experience: Advanced
23-Jan-2008, 02:41 PM #3
gees, i just use "search".

i don't find it necessary to reinvent the wheel.
lotuseclat79's Avatar
Distinguished Member with 10,007 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
23-Jan-2008, 06:00 PM #4
Quote:
Originally Posted by bearone2 View Post
gees, i just use "search".

i don't find it necessary to reinvent the wheel.
Hi bearone2,

Looks like you are using the reinvented wheel as find was there first!

I use Ubuntu 7.10, Gutsy Gibbon's Live CD, and search is not a normally installed command as far as I know in Linux.

What release of Linux are you using that has a search command installed?

"search" is not a standard command in either Unix or Linux - are you talking about searchmonkey that is aimed at replacing find/grep tools?

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction between a mere artisan or specialist and a real seeker after truth. - Einstein wrote in 1944.

Some say knowledge is power, I say knowledge without action is powerless. - lotuseclat79

Don't confuse action with movement. - Hemingway to Gardner

Imagination is more important than knowledge. - Einstein
bearone2's Avatar
Distinguished Member with 5,841 posts.
 
Join Date: Jun 2004
Location: hawaii
Experience: Advanced
23-Jan-2008, 06:55 PM #5
check my sig
prunejuice's Avatar
Senior Member with 1,526 posts.
 
Join Date: Apr 2002
23-Jan-2008, 08:39 PM #6
Quote:
Originally Posted by bearone2 View Post
check my sig
What should we be looking for? I don't get it...
bearone2's Avatar
Distinguished Member with 5,841 posts.
 
Join Date: Jun 2004
Location: hawaii
Experience: Advanced
24-Jan-2008, 11:51 AM #7
do you see linux on any of the machnes in my sig/list of equipment? i didn't see "linux" in the header when i initially replied.
RootbeaR's Avatar
Computer Specs
Senior Member with 1,745 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
24-Jan-2008, 06:07 PM #8
Quote:
Originally Posted by lotuseclat79 View Post
What release of Linux are you using that has a search command installed?

"search" is not a standard command in either Unix or Linux - are you talking about searchmonkey that is aimed at replacing find/grep tools?

-- Tom
PCLOS has a Find feature under its main menu listed under actions. Breaks it down from there to Find Files or Web Search.
RootbeaR's Avatar
Computer Specs
Senior Member with 1,745 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
24-Jan-2008, 06:09 PM #9
Meant to attach these.
Attached Thumbnails
don-t-know-where-file-snapshot5.jpg  don-t-know-where-file-snapshot6.jpg  
lotuseclat79's Avatar
Distinguished Member with 10,007 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
25-Jan-2008, 10:58 AM #10
bearone2,

This is a Linux forum. You can get more traction by posting your non-sequiturs in the Windows forums - duh!

-- Tom
bearone2's Avatar
Distinguished Member with 5,841 posts.
 
Join Date: Jun 2004
Location: hawaii
Experience: Advanced
25-Jan-2008, 11:51 AM #11
Quote:
Originally Posted by lotuseclat79 View Post
bearone2,

This is a Linux forum. You can get more traction by posting your non-sequiturs in the Windows forums - duh!

-- Tom
yo buckwheat.

did you happen to read my statement in post #7? probably not huh? non-sequiturs...a parable, what are you trying to say?
veribaka's Avatar
Member with 79 posts.
 
Join Date: Jul 2006
25-Jan-2008, 12:49 PM #12
Flame fest starting? Didn't see that one coming around here! However I have to agree with lotuseclat79, we're talking about a linux tool, why would that be reinventing a windows tool?

Settle down before it gets out of hand.
lotuseclat79's Avatar
Distinguished Member with 10,007 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
25-Jan-2008, 01:31 PM #13
Cool yer jets verbaka, nothing is getting out of hand - just sit back and relax.

bearone2 uses a Google toolbar to index his files in order to search for his lost Windows files, and thus opens up his computer (once it gets compromised) to the bad guys finding what they want real easy like. In that case, the last laugh will be not be bearone2's.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction between a mere artisan or specialist and a real seeker after truth. - Einstein wrote in 1944.

Some say knowledge is power, I say knowledge without action is powerless. - lotuseclat79

Don't confuse action with movement. - Hemingway to Gardner

Imagination is more important than knowledge. - Einstein
bearone2's Avatar
Distinguished Member with 5,841 posts.
 
Join Date: Jun 2004
Location: hawaii
Experience: Advanced
25-Jan-2008, 03:01 PM #14
Quote:
Originally Posted by lotuseclat79 View Post
Cool yer jets verbaka, nothing is getting out of hand - just sit back and relax.

bearone2 uses a Google toolbar to index his files in order to search for his lost Windows files, and thus opens up his computer (once it gets compromised) to the bad guys finding what they want real easy like. In that case, the last laugh will be not be bearone2's.

-- Tom
what drug's are you using?

google toolbar?????where did you come up with that assumption??? to "find".....

who are these bad guys who will gain access....the tooth fairy and co or something more obscure.

please enlighten me.
lotuseclat79's Avatar
Distinguished Member with 10,007 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
25-Jan-2008, 07:20 PM #15
Check out your signature bearone2 or should I say 'google tool bar boy'!

-- Tom
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:26 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.