LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-23-2005, 03:01 PM   #1
kpachopoulos
Member
 
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 03:15 PM.
 
Old 07-23-2005, 03:41 PM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
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
ls
#see if blah is still there

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

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

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


Reply


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


All times are GMT -5. The time now is 02:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration