LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2004, 06:14 AM   #1
chichibabin
Member
 
Registered: Sep 2003
Posts: 63

Rep: Reputation: 15
Can't delete symbolic link


Hi,
I have accidently created a symbolic link to my kernel source directory in the wrong location using 'ln -s /usr/src/2.6.1 build'. Whatever I do I cannot delete the link. I have tried rm, rm -f, rm -fr and rmdir. Does anyone know what I need to do to delete it?
Cheers, Sat
 
Old 01-20-2004, 06:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you just need to delete it like a file, and not actually go inside the link itself

Code:
rm /usr/src/linux
will try to use it as a file whereas
Code:
rm /usr/src/linux/
will delete the contents of the directory, as by the / you are following the link.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is a Symbolic Link? little_penguin Linux - Software 2 05-14-2005 09:27 AM
Symbolic link? jasone Linux - Newbie 4 05-06-2005 07:55 AM
symbolic link jsetter Linux - Newbie 4 11-22-2004 07:18 AM
How to delete a symbolic link aroop Linux - Newbie 24 07-29-2004 01:52 AM
Symbolic link. bulzbb Linux - General 8 03-19-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:30 PM.

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
Open Source Consulting | Domain Registration