Geek Posted March 7, 2011 Posted March 7, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/03/default-crontab-editor.jpg" alt="default-crontab-editor" title="default-crontab-editor" width="620" height="449" class="aligncenter size-full wp-image-13605" /></p> <p>Most hardcore <a href="http://osxdaily.com/category/command-line/">command line</a> 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:</p> <p>For a one time edit, launch the terminal and type:</p> <p><code>EDITOR=nano crontab -e</code></p> <p>If you want to set nano as your default editor in general, you use this command:</p> <p><code>export EDITOR=nano</code></p> <p>Now when you go to edit crontab, nano will be the default editor than vi. You can test this by typing:</p> <p><code>crontab -e</code></p> <p>Looking beyond <a href="http://osxdaily.com/category/mac-os-x/">Mac OS X</a>, this should work in Linux as well.</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/F1IUNtBxQNAhNthBcs-BRKVQYsc/0/da"><img src="http://feedads.g.doubleclick.net/~a/F1IUNtBxQNAhNthBcs-BRKVQYsc/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/F1IUNtBxQNAhNthBcs-BRKVQYsc/1/da"><img src="http://feedads.g.doubleclick.net/~a/F1IUNtBxQNAhNthBcs-BRKVQYsc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=QPPEFW0KD9c:HwRbu4SfHOM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=QPPEFW0KD9c:HwRbu4SfHOM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=QPPEFW0KD9c:HwRbu4SfHOM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=QPPEFW0KD9c:HwRbu4SfHOM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=QPPEFW0KD9c:HwRbu4SfHOM:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=QPPEFW0KD9c:HwRbu4SfHOM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=QPPEFW0KD9c:HwRbu4SfHOM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/QPPEFW0KD9c" height="1" width="1"/> View the full article
Recommended Posts