How to specify nano or vim as editor for crontab file

If you want to specify an editor, when you open the crontab file and do not just use the default one for your system nyou need to use the visual environment variable.

Export the value of VISUAL and then run the command crontab -e

Specify nano as the editor for the crontab file:

export VISUAL=nano; crontab -e

Specify vim as the editor for the crontab file:

export VISUAL=vim; crontab -e

Of course, you need to have vim or nano installed on your system if you want to use them.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to force the generation of backups in WHM

Sometimes we may need to force backups of the entire server before making important changes to...

Checking your server via SSH

If you have a VPS service or a Dedicated Server, there are several commands that you can execute...

How to prevent users from modifying php.ini using suPHP

When we use suPHP it is possible for our users to create a php.ini file in the same folder as...

Como instalar Ddos Deflate en tu servidor

Este  script fue desarrollado para evitar multiples conexiones a algun servidor linux.Para...