无忧阁

  • 首页
  • 资源下载
无忧阁
PHP and Android and Life
  1. 首页
  2. Linux
  3. 正文

Debian 更改默认VI程序

2013年1月22日 1150点热度 0人点赞 0条评论

Debian的crontab默认的编辑器是nano,用起来很不习惯,怎么才能转回VI呢?
用如下命令即可:
update-alternatives --config editor
出现如下所示的界面:

There are 3 alternatives which provide `editor’.

Selection Alternative
———————————————–
1 /bin/ed

  • 2 /bin/nano
  • 3 /usr/bin/vim.tiny

Press enter to keep the default[*], or type selection number:

然后选择3使用/usr/bin/vim就可以了。

如果你发现你的定时没有生效,可以/etc/init.d/cron restart命令强制生效一下。

标签: debian vi
最后更新:2013年1月22日

imnpc

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

imnpc

这个人很懒,什么都没留下

分类
  • Linux
  • PHP
  • 技术文档
标签聚合
实名 rsync linux 备份 安全 sql debian html

COPYRIGHT © 2021 无忧阁. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鲁ICP备13005870号-2

zh-CN Chinese (Simplified)
ar Arabiczh-CN Chinese (Simplified)zh-TW Chinese (Traditional)nl Dutchen Englishfr Frenchde Germanit Italianja Japaneseko Koreanpt Portugueseru Russianes Spanish