I am new to linux centos ,i am trying to save and exit crontab in centos.
I have used CLI.
crontab -e
when i press esc key from my keyboard it says ":quit to exit: and i press ":quit" and press enter key from keyboard crontab exit without saving.
You can set vi as your default crontab editor using the command. export EDITOR=vi
Then you can save and exit crontab using :wq.
It seems you edit your crontab in vim
. Use :x
to save and quit at the same time. Details: http://vim.wikia.com/wiki/Saving_a_file .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.