Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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
up vote 12 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.