How can I remove symbolic links?
Hello,
I would like to know how can I remove symbolic link, e.g., Quote:
Best wishes, Michael |
rm /usr/local/bin/g++
|
Removing the symbolic link (the linkfile itself) just removes that link and not the file it's linked to, for the record. You can safely use "rm" (or as safe as 'rm' ever is) to remove that linkfile, as rkelsen pointed out above.
|
Hello,
Thank you very much for your help :). Best wishes, Michael |
I was just experiencing a little trip up with this that wasn't intuitive to me. Maybe others that come across this thread may be like me.
When removing a sym-link, remember that your dealing with a file! A sym-link that points to a directory will auto fill with a backslash at the end, which is not what you want when removing it. If you're deleting a sym-link that refers to a directory, and you use auto complete to finish naming the link, remember to remove the trailing backslash. |
That was good to know. It just helped me to clarify as well. Thank you.
|
All times are GMT -5. The time now is 05:27 AM. |