更改 Ubuntu 系统的预设程序

在默认情况下,Ubuntu 系统会为用户预设程序。就拿文本编辑器来说吧,Ubuntu 预设的是 Nano,对某些朋友来说,使用 Vim 可能更得心应手些。那么如何更改这些预设的程序呢?

你可以使用 sudo update-alternatives --config editor 命令来更改默认的文本编辑器。在我的系统中,执行该命令后输出结果如下:

Selection Alternative

      1    /usr/bin/vim
      2    /bin/ed

*+ 3 /bin/nano

按照提示,输入数字 1 即可将当前默认的 Nano 更改为 Vim。

事实上,update-alternatives 命令还可以配置 FTP、Telnet、rsh 等预设程序。更多的你可以查看 /etc/alternatives 目录。

Read More:

3 Comments

  1. 1 iThouGht - » 更改 Ubuntu 系统的预设程序 Pingbacked @ 2006-11-24 1:02Reply to this comment

    [...] via:linuxtoy [...]

  2. 2 juanzhewudi Commented @ 2006-12-26 21:03Reply to this comment

    哈哈,这里真算的上是ubuntu之家啊

  3. 3 synthenic Commented @ 2007-05-07 11:09Reply to this comment

    请问楼主如何更换“电影播放机”的默认设置