LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-09-2002, 01:12 PM   #1
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Rep: Reputation: 15
question on find


I was looking for a libc file on my computer to determine what version of libc I have ... I found it but I ran into this while I was looking:

when I typed:

find /lib -name libc

it didn't find the libc libraries in the /lib directory. So I thought I should try something like this:

find /lib -name libc*

and then it gave me an error saying that the path must proceed the expression.

I don't get it. How would one use the find command to find all the libc libraries? thanks,

p
 
Old 07-09-2002, 01:33 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Try locate
locate libc
will give you all the libc references.
 
Old 07-09-2002, 01:35 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
and the find command should work fine unless you feed an extra space between / and lib and didn't misspell anything, just make sure you type it in exactly as you posted, it must work. And if still no go then try to put double quotes around libc*

Last edited by neo77777; 07-09-2002 at 01:40 PM.
 
Old 07-09-2002, 04:51 PM   #4
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Your find looked so good I decided to try it.

[root@web1 etc]# find /lib -name libc*
/lib/i686/libc-2.2.4.so
/lib/i686/libc.so.6
/lib/libc-2.2.4.so
/lib/libc.so.6
/lib/libcrypt-2.2.4.so
/lib/libcrypt.so.1
/lib/libcom_err.so.2
/lib/libcom_err.so.2.0
/lib/libcrypto.so.0.9.6b
/lib/libcrypto.so.2


I know that does not help your problem but maybe try it again?
 
Old 07-10-2002, 05:27 AM   #5
mikek147
Member
 
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
Depending on the shell, or OS, the wildcard character can be interpreted by the shell and not the command. To insure this doesn't happen, preceed the wildcard character with a backslash character as:

find /lib -name libc\*

It's also good practice to add the -print switch as:

find /lib -name libc\* -print

-mk

Last edited by mikek147; 07-10-2002 at 05:30 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about FIND katsal Linux - General 4 04-28-2005 04:11 AM
Find question facets Linux - Newbie 3 03-04-2005 07:04 AM
find question coder22 Linux - Newbie 3 02-21-2005 07:11 AM
find -exec question eantoranz Linux - General 1 06-26-2004 10:57 AM
Question on find command rytrom Linux - Newbie 3 08-07-2003 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:40 PM.

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