Hoaxblog.com

Everything is hoax!

Pages:

  • About

Categories:

  • Apache (6)
  • backup (1)
  • cache (2)
  • Cpanel/WHM (11)
  • ddos (1)
  • exam (1)
  • file hosting (2)
  • General (11)
  • Hosting (1)
  • It’s me (2)
  • linux (1)
  • Linux Shell (14)
  • Make Money Online (2)
  • Mysql (2)
  • mysqldump (1)
  • php (1)
  • Programming (3)
  • proxy (1)
  • Reseller (1)
  • SEO (1)
  • Servers (21)
  • VPN (1)
  • Windows (6)
  • wordpress (1)

Archives:

  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • October 2007
  • May 2007
  • April 2007

Blogroll

  • Free Rapidshare Downloads

Meta:

  • Register
  • Login
  • Valid XHTML
  • XFN
  • WordPress


Changing Default Crontab Editor

Today i was working with a fresh newly deployed box for my new hosting plan “Sole Master Reseller Hosting”. I was trying to install some stuffs and do some changes on the crontab. Several times i was getting VI editor as the default editor set for my profile. I personally don’t like VI, as its more geeky, and i have seen using NANO from my first Linux VPS. So i was looking for a command which would change the default editor for my profile as well as change the default crontab editor. There is a command called EXPORT which can be used to do that.

You can just run the following command to change your default editor:

1
export VISUAL=nano

This would change your default editor to nano. So if you want vi then you can just change the nano to vi for doing that :) To reload the default editor as your wish you can edit the above line in your .bashrc file. Go to /root and edit your .bashrc, add the command at the end of the file. It should change your default editor to your wish :)

This entry was posted on Tuesday, December 25th, 2007 at 4:20 pm and is filed under Linux Shell. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply


© Copyright by Hoaxblog.com