LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-07-2005, 08:17 PM   #1
alice95089
Member
 
Registered: Dec 2004
Location: hong kong
Posts: 44

Rep: Reputation: 15
symbolic link in /lib


Hi all,
I would like to ask why there are lot of symbolic link in the /lib directory?
Why dont we just use the desired hard link library?

lrwxrwxrwx 1 root root 19 Sep 18 15:15 libnss_dns.so.2 -> libns
s_dns-2.3.2.so
-rwxr-xr-x 2 root root 51K Mar 13 2003 libnss_files-2.3.2.so
lrwxrwxrwx 1 root root 21 Sep 18 15:15 libnss_files.so.2 -> lib
nss_files-2.3.2.so
-rwxr-xr-x 2 root root 20K Mar 13 2003 libnss_hesiod-2.3.2.so
lrwxrwxrwx 1 root root 22 Sep 18 15:15 libnss_hesiod.so.2 -> li
bnss_hesiod-2.3.2.so
-rwxr-xr-x 1 root root 1.8M Jan 25 2003 libnss_ldap-2.3.1.so
lrwxrwxrwx 1 root root 20 Sep 18 15:19 libnss_ldap.so.2 -> libn
ss_ldap-2.3.1.so
-rwxr-xr-x 2 root root 42K Mar 13 2003 libnss_nis-2.3.2.so
-rwxr-xr-x 2 root root 51K Mar 13 2003 libnss_nisplus-2.3.2.so
lrwxrwxrwx 1 root root 23 Sep 18 15:15 libnss_nisplus.so.2 -> l

Thanks
alice
 
Old 02-07-2005, 08:28 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Just a guess, but probably because you'd have to delete 'both' libraries and then install 'two' libraries and make sure you got it right. (On a library upgrade I mean.) With symlinks, you just switch the 'real' one and the symlink still applies. Not really sure though. Hard links can't (or couldn't - not sure if it's still true) span filesystems either - doesn't apply to /lib but that'd be a good reason to use symlinks elsewhere.

Last edited by slakmagik; 02-07-2005 at 08:30 PM.
 
  


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
Symbolic link? jasone Linux - Newbie 4 05-06-2005 07:55 AM
/sbin/ldconfig: /usr/lib/libgtkhtml-3.0.so.2 is not a symbolic link rosariowong Slackware 13 04-29-2005 03:41 PM
help with a symbolic link mykrob Linux - Software 6 11-22-2004 10:01 AM
IdConfig: /usr/lib/.... is not a symbolic link. _tomMmy_ Linux - Software 0 08-23-2004 07:12 AM
Symbolic link. bulzbb Linux - General 8 03-19-2004 04:57 AM


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