$ update-alternatives --install /usr/bin/editor editor /usr/bin/emacs-without-x.sh 50命令解释:debian中/usr/bin/的很多符号链接指向/etc/alternatives/的链接,后者由update-alternatives命令维护;要增加新的选项就用install指令,第一个参数建立/usr/bin/editor符号链接指向第二个参数editor(即/etc/alternatives/editor这个符号链接),而第二个参数指向/usr/bin/emacs-without-x.sh这个脚本。
Weekend
11 年前
没有评论:
发表评论