Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-13-2011, 09:40 PM   #1
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/ /usr/lib

sudo ln -s /opt/python2.6/lib/ /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 /usr/lib
sudo rm -i /opt/python2.6/lib/python2.6/config/

what am I doing wrong?
Old 03-13-2011, 10:02 PM   #2
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:

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

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, 10:05 PM   #3
Registered: Sep 2009
Location: Maryland
Distribution: Slackware
Posts: 68

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

Original Poster
Rep: Reputation: 0
very great



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 01:14 PM
Would a symlink help ? budword Linux - Software 4 07-11-2007 01:47 PM
Symlink Fredde87 Linux - General 14 09-30-2005 09:06 PM
symlink mikedelo Linux - Software 2 03-28-2004 01:32 PM
symlink evannextel Linux - Newbie 1 09-17-2003 04:54 PM > Forums > Linux Forums > Linux - Newbie

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