LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   symlink help needed (https://www.linuxquestions.org/questions/linux-newbie-8/symlink-help-needed-868376/)

e_metib 03-13-2011 08:40 PM

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?

rigor 03-13-2011 09:02 PM

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.

kforbus 03-13-2011 09:05 PM

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.

e_metib 03-14-2011 07:03 AM

very great

Thanks!


All times are GMT -5. The time now is 12:50 PM.