How do I delete a symbolic link? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How do I delete a symbolic link?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-20-2005
ranit ranit is offline
Registered User
 
Join Date: Apr 2005
Last Activity: 21 April 2005, 2:48 PM EDT
Location: USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How do I delete a symbolic link?

I just created a symbolic link to a directory using ln -s </remote-directory> < name>
I just want to get rid of it.
What should I do?

muck thanks,
rkk
Sponsored Links
    #2  
Old 04-20-2005
sssow sssow is offline
Registered User
 
Join Date: Aug 2001
Last Activity: 17 December 2008, 6:03 PM EST
Posts: 179
Thanks: 0
Thanked 0 Times in 0 Posts
use unlink

look at man pages of unlink

While linked files and directories can be removed using
unlink, it is safer to use rm(1) and rmdir(1) instead. See
rm(1) and rmdir(1).
Sponsored Links
    #3  
Old 04-20-2005
dangral dangral is offline Forum Advisor  
Registered User
 
Join Date: Oct 2002
Last Activity: 31 July 2013, 6:52 PM EDT
Posts: 723
Thanks: 3
Thanked 4 Times in 4 Posts
Hmm...thats a roundabout way. Why not just use rm? Especially if the unlink man page tells you to use rm.
    #4  
Old 04-21-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
AFK
 
Join Date: Dec 2004
Last Activity: 28 July 2014, 9:39 AM EDT
Location: UK
Posts: 2,351
Thanks: 0
Thanked 6 Times in 6 Posts
Quote:
Hmm...thats a roundabout way. Why not just use rm? Especially if the unlink man page tells you to use rm.
I will put it in a simpler manner. All links are files (including links to directories). Just use rm to delete any link - it will not affect the target file/directory.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Symbolic Link Help LAVco Shell Programming and Scripting 2 06-07-2010 03:15 PM
symbolic link tonijel Shell Programming and Scripting 2 10-01-2009 06:23 AM
tar the symbolic link ganga.dharan Shell Programming and Scripting 1 05-23-2008 07:11 AM
need some info about symbolic link and hard link detective linux UNIX for Dummies Questions & Answers 2 01-08-2008 06:36 AM
symbolic Link bhargav UNIX for Dummies Questions & Answers 1 10-15-2004 09:41 AM



All times are GMT -4. The time now is 06:20 PM.