Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Dec 16 '12 at 13:57

This question came from our site for professional and enthusiast programmers.

Belongs on Super User. –  millimoose Dec 16 '12 at 0:36
Doesn't really need to be on Super User; it is a question about a program used in shell programming, and as such is on topic for Stack Overflow. –  Jonathan Leffler Dec 16 '12 at 3:41
Read the manual, do some experiments. –  vonbrand Jan 23 '13 at 19:03

1 Answer 1

up vote 11 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.