什么是etc / alternative用于?
/etc/alternatives
代表什么? 它是如何使用的?
我在/usr/bin
找到了gnome-tex-editor
,其链接如下:
/usr/bin/gnome-text-editor -> /etc/alternatives/gnome-text-editor /etc/alternatives/gnome-text-editor -> /usr/bin/gedit
所以gedit
和gnome-text-editor
似乎是一回事。
那么为什么有些命令(例如: gedit
和gnome-text-editor
)提供了两次呢?
什么是 /etc/alternatives/
的用途 – 它是如何工作的?
有些程序被认为是通用的。 许多程序可以提供所需的function。
例如, view
是一种这样的元程序,可以由任何能够显示文本的工具提供,例如more
, less
, vim
等。
/etc/alternatives
是一个目录,用于通过名为update-alternatives
的工具跟踪当前使用update-alternatives
。
有关更多信息,请阅读终端中man update-alternatives
的手册页 。 另请访问Debian Alternatives System 。