How to Change the Crontab Editor?


The crontab is the job scheduler under Linux. You can set any jobs running from 1 minute to 1 year or longer. To edit the jobs, you type in crontab -e.

The text-editor is default to nano but you can already change by using

1
export VISUAL=vim
export VISUAL=vim

Each line specifies a job and the # starts a comment.

Another method is to run select-editor

1
2
3
4
5
6
7
8
9
root@uploadbeta:~$ select-editor
 
Select an editor.  To change later, run 'select-editor'.
  1. /bin/ed
  2. /bin/nano        <---- easiest
  3. /usr/bin/vim.basic
  4. /usr/bin/vim.tiny
 
Choose 1-4 [2]: 
root@uploadbeta:~$ select-editor

Select an editor.  To change later, run 'select-editor'.
  1. /bin/ed
  2. /bin/nano        <---- easiest
  3. /usr/bin/vim.basic
  4. /usr/bin/vim.tiny

Choose 1-4 [2]: 

--EOF (The Ultimate Computing & Technology Blog) --

GD Star Rating
loading...
162 words
Last Post: How to Setup a PHP Script in Crontab to Clean Multiple WordPress (Database) on Same Server?
Next Post: Benefits of JIT Compilation

The Permanent URL is: How to Change the Crontab Editor?

Leave a Reply