Debian的crontab默認的編輯器是nano,用起來很不習慣,怎么才能轉(zhuǎn)回VI呢?
用如下命令即可:
#update-alternatives --config editor
出現(xiàn)如下所示的界面:
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就可以了。
PS:如果你發(fā)現(xiàn)你的定時沒有生效,可以/etc/init.d/cron restart命令強制生效一下。
posted on 2010-08-23 15:46
Robin's Programming World 閱讀(876)
評論(0) 編輯 收藏 所屬分類:
OS