I have a soft link (used ln -s command) directory in my path. Can I simply remove it by using rm command? If yes, is it going to remove the files in the directory I linked from? Please advise. Many Thanks.
Yes you can remove a soft link with the rm command and it won't remove the files in the linked directory.
But you can prove it to yourself by creating a temporary directory containing a temporary file, creating a temporary soft link to it and removing the link. CaKiwi
good idea to test it, some versions of UNIX do it one way (remove the link but not the file) and some the other (remove the target file as well) Mike
________________________________________________________________
"Experience is the comb that Nature gives us, after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.