File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Linux / UNIX
delete soft link
Joined: Apr 08, 2004
Sep 27, 2009 19:11:27
How to delete only soft link without deleting directory and its contents.
deletes soft link and directory too.
author and iconoclast
Joined: Jul 08, 2003
Sep 27, 2009 21:17:07
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.
[Jess in Action]
I agree. Here's the link:
subject: delete soft link
writing to files
soft link / mounted directory ?
Delete everything in directory except directory, how ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015