浙江省高等学校教师教育理论培训

微信搜索“教师资格证岗前培训”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Change & Set the Default crontab Editor

    Change & Set the Default crontab Editor

    Mar 7, 2011 - 8 Comments

         
        

    default-crontab-editor

    Most hardcore command line users and unix geeks love vi, but I prefer nano. If you want to change your default crontab editor to nano, here’s how to do this:

    For a one time edit, launch the terminal and type:

    EDITOR=nano crontab -e

    If you want to set nano as your default editor in general, you use this command:

    export EDITOR=nano

    Now when you go to edit crontab, nano will be the default editor than vi. You can test this by typing:

    crontab -e

    Looking beyond Mac OS X, this should work in Linux as well.

posted on 2012-04-23 13:55  lexus  阅读(301)  评论(0编辑  收藏  举报