I ran crontab -e and made some changes, now how do I save it?
4 Answers
That depends on the editor you run. contab -e uses the editor specified in the environment variable $EDITOR. Mostprobably it's vi or nano.
- In
vipress esc to switch to the command mode, then type:wqto write (w) and quit (q). - In
nanopress ctrl+x, then press y for yes and provide a filename before pressing Enter.
when editing it after finishing press esc, then type
:wq
and press enter, that will save the crontab and exit
or just
:w
will save it
1This is problem of editor
export EDITOR=nanoTry running this command & then
crontab -eIt solved my problem.
To save when done editing in crontab editing, press ESC, then hold exactly CTRL+SHIFT+:
then write wq! press enter to save.