Quantcast
Channel: Does rm -rf follow symbolic links? - Super User
Viewing all articles
Browse latest Browse all 4

Answer by Ken Simon for Does rm -rf follow symbolic links?

$
0
0

Your /home/me/msg directory will be safe if you rm -rf the directory from which you ran ls. Only the symlink itself will be removed, not the directory it points to.

The only thing I would be cautious of, would be if you called something like "rm -rf msg/" (with the trailing slash.) Do not do that because it will remove the directory that msg points to, rather than the msg symlink itself.


Viewing all articles
Browse latest Browse all 4

Trending Articles