Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
sudo ln -fs /usr/share/icons/Cyclone/cursor.theme etc/alternatives/x-cursor-theme

I want to delete this link, as it seems to make some problems. Is this done by deleting cursor.theme file or what are the steps to archive a complete deletion?

share|improve this question
up vote 12 down vote accepted
unlink /etc/alternatives/x-cursor-theme

You may also be interested in update-alternates

update-alternatives --config x-cursor-theme
share|improve this answer
what do you mean by update-alternates ???is it like updating the link??? – Black Block Dec 6 '11 at 20:36
That command will give you a menu to select your mouse cursor theme. – bodhi.zazen Dec 6 '11 at 21:57
Note that, while this answer is correct, unlink is not limited to removing symbolic links. It will also delete ordinary files, same as rm. In particular, users should be aware that unlink is in no way safer than the widely used rm command. (Unlink simply "avoids the bells and whistles of the more commonly-used rm command".) – Eliah Kagan Apr 9 '15 at 5:17

The answer is:

sudo rm /etc/alternatives/x-cursor-theme
share|improve this answer
what are you talking about this is one of the system files if i delete it will crash something. – Black Block Dec 6 '11 at 22:34
The system file is at /usr/share/icons/Cyclone/cursor.theme , and will be unaffected. The link is at /etc/alternatives/x-cursor-theme , and will be removed. – user535733 Dec 6 '11 at 22:38
You asked how to delete a symbolic link. That's how. :) The system file is not changed, but the symbolic link, destroyed. – user8290 Dec 6 '11 at 23:17
bodhi.zazen shows you how to choose a new one with 'update-alternatives' I bet it even changes the value of the symlink. – user8290 Dec 6 '11 at 23:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.