Guest User

Untitled

a guest
Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #How to specify nano or vim as editor for crontab file
  2.  
  3. #If you want to specify an editor, when opening crontab file.
  4. #And not just use the default for your system. You need to use VISUAL environment variable.
  5.  
  6.  
  7. #Export the value of VISUAL and then run crontab -e command.
  8. #Specify nano as the editor for crontab file
  9. export VISUAL=nano; crontab -e
  10.  
  11. #Specify vim as the editor for crontab file
  12. export VISUAL=vim; crontab -e
  13.  
  14. #Of course you need to have vim or nano installed in your system if you want to use them.
Add Comment
Please, Sign In to add comment