3

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!

John Hascall
  • 9,176
  • 6
  • 48
  • 72
satya
  • 3,508
  • 11
  • 50
  • 130

3 Answers3

7

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.

teoreda
  • 2,392
  • 1
  • 21
  • 28
0

You can easily export the crontab for any user to a file:

crontab -u myuser -l > crontab.txt
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
0

step1 : press Crl+X
step2 : press Ship+Y
step3 : press Enter key

taras
  • 6,566
  • 10
  • 39
  • 50
VBK
  • 29
  • 3