Originally Posted by Four
What about deleting directories? rm also has the recursive thing. If you use it or not shouldn't it delete subdirectories?
Yes. Be very careful about using it. I have rm
aliased to rm -i
(interactive) on my PC, so that it asks before removing each file. It can be a bit annoying if you have a lot of files to remove (rm -f
can be used to override this), but it can help you to avoid accidentally removing files you want to keep.