linux - [Solved-5 Solutions] Remove a symlink to a directory - ubuntu - red hat - debian - linux server - linux pc
Linux - Problem :
How to remove a symbolic link to a directory ?
Linux - Solution 1:
Linux - Solution 2:
rm should remove the symbolic link.
Linux - Solution 3:
Assuming it actually is a symlink,
Linux - Solution 4:
- Use rm symlinkname but do not include a forward slash at the end (do not use: rm symlinkname/).
Linux - Solution 5:
If rm cannot remove a symlink, perhaps you need to look at the permissions on the directory that contains the symlink.
To remove directory entries, you need write permission on the containing directory.