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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-18-2006, 06:20 PM
|
#1
|
Member
Registered: Mar 2006
Location: Austria
Distribution: Ubuntu Breezy 5.10
Posts: 32
Rep:
|
How can I remove symbolic links?
Hello,
I would like to know how can I remove symbolic link, e.g.,
Quote:
ln -s /usr/local/bin/ccache /usr/local/bin/g++
|
Thank you very much.
Best wishes,
Michael
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
04-18-2006, 06:26 PM
|
#2
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 4,664
|
rm /usr/local/bin/g++
|
|
|
04-18-2006, 06:32 PM
|
#3
|
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181
Rep:
|
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.
|
|
|
04-19-2006, 04:32 AM
|
#4
|
Member
Registered: Mar 2006
Location: Austria
Distribution: Ubuntu Breezy 5.10
Posts: 32
Original Poster
Rep:
|
Hello,
Thank you very much for your help .
Best wishes,
Michael
|
|
|
10-07-2009, 10:28 PM
|
#5
|
Member
Registered: Mar 2007
Posts: 61
Rep:
|
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.
|
|
3 members found this post helpful.
|
11-19-2009, 07:45 AM
|
#6
|
Senior Member
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
|
That was good to know. It just helped me to clarify as well. Thank you.
|
|
|
All times are GMT -5. The time now is 06:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|