LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-13-2011, 08:40 PM   #1
e_metib
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
symlink help needed


I need help please ... removing some links made.


sudo ln -s /opt/python2.6/lib/libpython2.6.so.1.0 /usr/lib

sudo ln -s /opt/python2.6/lib/python2.6.so /opt/python2.6/lib/python2.6/config/

I tried the following and failed to remove the links
sudo rm -i /usr/lib
sudo rm -i libpython2.6.so.1.0 /usr/lib
sudo rm -i /opt/python2.6/lib/python2.6/config/

what am I doing wrong?
 
Old 03-13-2011, 09:02 PM   #2
kakaka
Member
 
Registered: Sep 2003
Posts: 382

Rep: Reputation: 87
On many Unix-like systems, including Linux, generally /usr/lib would be a directory which already existed when you tried to create a symlink. So if both /usr/lib and the library .so file to which the command:

Quote:
sudo ln -s /opt/python2.6/lib/libpython2.6.so.1.0 /usr/lib
refers existed prior to command execution, then the actual name of the symlink created would be:

Quote:
/usr/lib/libpython2.6.so.1.0
The other command you executed to create the other symlink would have a similar effect, if the target ( the final command parameter ) is a directory, the link is created in that directory.
 
1 members found this post helpful.
Old 03-13-2011, 09:05 PM   #3
kforbus
Member
 
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

Rep: Reputation: 28
rm /usr/lib/libpython2.6.so.1.0 would work or you could use the unlink command. unlink /usr/lib/libython2.6.so.1.0.
 
1 members found this post helpful.
Old 03-14-2011, 07:03 AM   #4
e_metib
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
very great

Thanks!
 
  


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
Question How to get stat() of symlink and not of target of symlink ? ronbarak Programming 3 11-08-2010 12:14 PM
Would a symlink help ? budword Linux - Software 4 07-11-2007 12:47 PM
Symlink Fredde87 Linux - General 14 09-30-2005 08:06 PM
symlink mikedelo Linux - Software 2 03-28-2004 12:32 PM
symlink evannextel Linux - Newbie 1 09-17-2003 03:54 PM


All times are GMT -5. The time now is 05:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration