Share your knowledge at the LQ Wiki.
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 07-23-2005, 02:01 PM   #1
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
remove symbolic link

I have a link (symbolic) to folder. If i do "rm linkname", the folder will remain untouched. Can somebody confirm? Strangely enough, i cannot remember having tried this and i don't want to fall into a trap.

Last edited by kpachopoulos; 07-23-2005 at 02:15 PM.
Old 07-23-2005, 02:41 PM   #2
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
there are differences between symbolic and hard links,
try both, just so you can test it.
#symbolic link try
mkdir blah
ln -s blah blah-sl
rm blah-sl
#see if blah is still there

#for hard link try
mkdir blah
ln blah blah-hl
rm blah-hl
#see if blah is still there

wasn't so hard now was it?
Old 07-23-2005, 02:42 PM   #3
Registered: Jan 2005
Posts: 51

Rep: Reputation: 15
Yes, if you only delete the symbolic link, then the referred folder will not be affected.


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
how to remove a hard link... trey85stang Linux - Newbie 17 07-14-2008 12:17 PM
Is there a way to remove a symbolic link Philter Linux - Newbie 3 11-30-2004 06:24 PM
Can't remove symbolic link kimchee411 Linux - Newbie 1 10-06-2004 02:25 AM
How do i remove a link made with ln? theMonkeY Linux - Newbie 2 06-19-2004 12:06 PM
how to remove link boToo Linux - Newbie 1 08-24-2003 01:04 AM > Forums > Linux Forums > Linux - Newbie

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