LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-05-2002, 09:15 PM   #1
winger
Member
 
Registered: Mar 2002
Location: Florida
Distribution: Mandrake 9.1
Posts: 40

Rep: Reputation: 15
symbolic links


Where are symbolic links stored? How can I determine what links exist and how can I remove unwanted symbolic links?

I am using Mandrake 8.1 if it makes any difference. Also, I am pretty new at this game so the simpler the explanation the greater the possibility I might understand it.

winger
 
Old 04-05-2002, 09:23 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
stored? symlinks aren't "stored" anywhere, they are a special type of file that simply points to another file. you can remove unwanted ones with a normal rm command like any otehr file.
 
Old 04-05-2002, 09:43 PM   #3
winger
Member
 
Registered: Mar 2002
Location: Florida
Distribution: Mandrake 9.1
Posts: 40

Original Poster
Rep: Reputation: 15
I guess I am not making myself clear. I created (I think) a symbolic link that does not seem to work. I assume it exists somewhere out there in linux land. I would like to examine it, and possibly remove it, but I don't know how to view a file, no less remove it, without knowing its name or where it resides.

winger
 
Old 04-06-2002, 03:18 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
How did you create the link? Where did you create it? A link that doesn't work won't hurt anything. You can just leave it if you can't find it. It just takes up a little space.
 
Old 04-06-2002, 02:52 PM   #5
winger
Member
 
Registered: Mar 2002
Location: Florida
Distribution: Mandrake 9.1
Posts: 40

Original Poster
Rep: Reputation: 15
Here’s the Deal. I downloaded xsane-0.84, from http://www.mostang.com/sane/. The sane-1.0.7 libraries on my box are in “/usr/local/lib” and I guess those are the backends in “/usr/local/lib/sane/”. In order for xsane to locate them the instructions say to add the path “/usr/local/lib” to /etc/ld.so.conf and call “ldconfig”. I did this with no success.

Finally, the instructions state” If all that does not help, make sure that ‘/usr/local/lib/libsane.so.’ are symbolic links to ‘/usr/local/lib/sane/libsane-dll.so.*’ or’ ./sane/libsane-dll.so.*” When I did this I got a message saying something like,”when making multiple links the last item in the link must be a directory. So I made the link again and this time left off the “libsane-dll.so.*” from the second argument. To the best of my knowledge, a link was created but xsane still cannot locate the sane libraries.

So all that being said, I would like to know; 1. If I have a link; 2. Is it going to the right place; and 3. if not can I kill it and try again? If it is a file, I should be able to see it and remove it, but there was no indication when I ran the “ln” command what the file name would be or what directory it would be put in or for that matter if it was even successfully created.
 
Old 04-06-2002, 05:16 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
ok do as root, I suppose (mandy is bitching about files ownerships and stuff)
ls -l /usr/local/lib/libsane.so
if it shows you
lrwxrwxrwx ......./usr/local/lib/libsane.so->/usr/local/lib/sane/libsane-dll.so.x
or such you are ok (x is for number), if not, there might be libsane-dll.so.1,libsane-dll.so.2 and so on on the system, then make a symlink to point to one of them not all (can't do it, that's probably why you have this error message) to remove it
just do
rm /usr/local/lib/libsane.so

Last edited by neo77777; 04-06-2002 at 05:18 PM.
 
  


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
symbolic links durden2.0 Linux - Newbie 6 11-12-2008 03:06 AM
Symbolic Links petercool Linux - General 2 08-20-2003 11:15 AM
Symbolic links bkmesenbrink Linux - Newbie 2 11-13-2002 11:54 AM
Symbolic links pdstatha Programming 1 04-08-2002 09:50 PM
Symbolic links Valerie Linux - Newbie 12 03-31-2002 01:49 AM

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

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