Nick
Nick

Reputation: 3134

Cannot remove a symlink ("Is a directory")

I created a symlink:

enter image description here

Then I decided to remove it:

enter image description here

But I can't. What is going on here? I don't want to force the removal as I am afraid to not affect in any way the original. Operating system is CentOS 5.9. Any advice on how to safely remove the symlink are most welcome!

Upvotes: 1

Views: 7480

Answers (1)

Joni
Joni

Reputation: 111259

You have a directory /galaxy, and the symbolic link you created is in that directory, /galaxy/galaxy.

To remove the symlink do: rm /galaxy/galaxy

Upvotes: 5

Related Questions