Does rm -r follow symbolic links

bashunix

If I have symbolic links in some subtree of my directories and decide to recursively removed a driectory and its contents, will that remove items symbolically linked in the tree?

Best Answer

From the man file

$ man rm

...
The rm utility removes symbolic links, not the files referenced by the links.
...

Version OS X 10.8.2

Look this SuperUser question.

Related Question