I have testlink -> testtarget// and rm and rmdir report the following:
$ rm testlink/
rm: cannot remove 'testlink/': Is a directory
$ rmdir testlink/
rmdir: failed to remove 'testlink/': Not a directory
Of course I can remove the symlink with rm testlink, but why does Linux report that the symlink is both a directory and not a directory?
testtargeta directory? – Arkadiusz Drabczyk Jan 23 '21 at 00:58testtargetis a directory. – Paul Jan 23 '21 at 01:35rmdir src/remove the directory thatsrcpoints to -- turningsrcit into a dangling symlink without removing it (as it actually happens on BSD), doesn't feel like something that useful, either. – Jan 23 '21 at 12:18