Quantcast
Channel: Does rm -rf follow symbolic links? - Super User
Browsing latest articles
Browse All 4 View Live

Answer by Jayan for Does rm -rf follow symbolic links?

rm should remove files and directories. If the file is symbolic link, link is removed, not the target. It will not interpret a symbolic link. For example what should be the behavior when deleting...

View Article



Answer by Susam Pal for Does rm -rf follow symbolic links?

Example 1: Deleting a directory containing a soft link to another directory.susam@nifty:~/so$ mkdir foo barsusam@nifty:~/so$ touch bar/a.txtsusam@nifty:~/so$ ln -s /home/susam/so/bar/...

View Article

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

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...

View Article

Does rm -rf follow symbolic links?

I have a directory like this:$ ls -ltotal 899166drwxr-xr-x 12 me scicomp 324 Jan 24 13:47 data-rw-r--r-- 1 me scicomp 84188 Jan 24 13:47 lod-thin-1.000000-0.010000-0.030000.rdadrwxr-xr-x 2 me scicomp...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images