Archive

Archive for the ‘crontab’ Category

crontab editor

September 10, 2011 Leave a comment

To use your favoriate editor to modify user’s crontab, here’s how:

1) Quick and dirty solutions

   EDITOR=vim crontab -e

or

   export EIDTOR=vim
   crontab -e

2) Permanent solution:
add the following line to either ~/.bashrc or ~/.bash_profile

export EDITOR=vim
Advertisements
Categories: Bash, crontab