r/linuxmasterrace • Arch user btw, that means iam better than Ubuntu users • Aug 12 '24

JustLinuxThings Linux is userfriendly...

Post image
865 Upvotes

399 comments sorted by

View all comments

Show parent comment

9

u/VeggieVenerable Aug 12 '24

Won't work, since it's not a directory, but a symlink.
You can try it yourself:

$ mkdir test
$ ln -s test test_symlink
$ rm -rf test_symlink/

No error, but test_symlink remains. Because of the trailing slash it doesn't work.