Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

What does /etc/alternatives stand for? How and why is it used?

I found gnome-tex-editor in /usr/bin which is linked as follows:

/usr/bin/gnome-text-editor -> /etc/alternatives/gnome-text-editor
/etc/alternatives/gnome-text-editor -> /usr/bin/gedit

So gedit and gnome-text-editor seem to be the same thing.

So why are some commands (e.g.: gedit and gnome-text-editor) provided twice?

And what is the use of /etc/alternatives/ - how does it work?

share|improve this question
up vote 13 down vote accepted

There are some programs that are considered generic. Many programs can provide the required functionality.

For example, view is one such meta-program that can be provided by any tool capable of displaying text, such as more,less,vim,etc.

/etc/alternatives is a directory that is used in keeping track of the alternatives currently in use, by a tool called update-alternatives.

For more information, read the manual page by man update-alternatives in a terminal. Also visit Debian Alternatives System.

share|improve this answer

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.