LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-31-2005, 12:14 PM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
searching a file in my hardisk...


well... I know how to do basic stuff... but never managed to search a file in my hardisk named i.e libjavaplugin_oji.so

and to get a results only!


help?
 
Old 10-31-2005, 12:45 PM   #2
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
Well ...

# updatedb
# locate libjavaplugin_oji.so

or ...

# find / -name "libjavaplugin_oji.so" - print


The find command will give you a few errors when hits the /proc directory, but should find it for you. Personally, I like the locate command. You may have to run the updatedb command first to update the database that locate uses to find files.

NOTE: I show these commands as being run by root, but the only one that must be run as root is the updatedb command. With the find command, you'll see a lot more errors (directories that you do not have permission to) it you run it as a non-root user.
 
  


Reply



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
File Searching gfrair Linux - Newbie 1 03-14-2005 06:24 PM
"which files to copy to hardisk for Hardisk installation " Rehan1 Linux - Newbie 9 08-21-2004 03:11 PM
Searching patterns from file MichaelVaughn Programming 1 04-06-2004 11:18 AM
File Searching JC404 Linux - Newbie 2 08-02-2003 08:45 PM
searching through a file albean Linux - Newbie 8 11-23-2002 08:16 PM

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

All times are GMT -5. The time now is 04:28 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