Change & Set the Default crontab Editor

Change & Set the Default crontab Editor,第1张

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.

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/2089753.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存