Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-07-2005, 08:17 PM   #1
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 -> libns
-rwxr-xr-x 2 root root 51K Mar 13 2003
lrwxrwxrwx 1 root root 21 Sep 18 15:15 -> lib
-rwxr-xr-x 2 root root 20K Mar 13 2003
lrwxrwxrwx 1 root root 22 Sep 18 15:15 -> li
-rwxr-xr-x 1 root root 1.8M Jan 25 2003
lrwxrwxrwx 1 root root 20 Sep 18 15:19 -> libn
-rwxr-xr-x 2 root root 42K Mar 13 2003
-rwxr-xr-x 2 root root 51K Mar 13 2003
lrwxrwxrwx 1 root root 23 Sep 18 15:15 -> l

Old 02-07-2005, 08:28 PM   #2
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.


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/ 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration