• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

delete soft link

 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to delete only soft link without deleting directory and its contents. unlink deletes soft link and directory too.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

No, deleting a soft link deletes only the link. If you have a link to a directory and you just say "rm link", then the link is removed. If you say "rm -rf link", though, then yes, the whole linked-to directory will be emptied out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic