Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save file in crontab using Ubuntu

I am editing a crontab file using the nano editor on Ubuntu. I need to save my text as a crontab file. When I attempt to save the file, it is asking me for the file name, but after I give the file name it's not taking or I'm not giving the proper path or something. I have included a screen shot below.

enter image description here

Thanks for helping!

like image 709
satya Avatar asked Dec 03 '25 22:12

satya


1 Answers

Try to do as follow: Use VI as editor:

export VISUAL=vi
crontab -e

press i for write; than press ESC and :wq for save and exit.

like image 67
teoreda Avatar answered Dec 05 '25 14:12

teoreda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!