Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have connected via ssh and have added a cron job but I can't figure out how to save it. I'm still on the crontab -e page how do I save my changes?

share|improve this question

migrated from Oct 4 '12 at 6:43

This question came from our site for professional and enthusiast programmers.

in vim :wq in Emacs... exit then open vim :P – gtgaxiola Oct 4 '12 at 3:02
Success, thank you! – Daniel Fein Oct 4 '12 at 3:04
You're welcome. – gtgaxiola Oct 4 '12 at 3:05
Actually the right answer for Emacs is C-x C-s to save and C-x C-c to quit. (Just C-x C-c will offer to save any unsaved changes, too.) ... These days there'd probably be a fugly menu you can access with M-` if you don't have the mouse available. – tripleee Oct 4 '12 at 3:30

crontab -e simply fires up the crontab file for that account in your default text editor so you can edit it.

With nano, which is the default on ubuntu, you can hit ctrl-x then choose to save.

From the comments :wq for Vim and C-x C-s to save and C-x C-c to exit for emacs.

share|improve this answer

Once the Crontab is open, use your arrow keys to place the cursor at the beginning of the newly added Cron Job line and press the i key to insert text.

Press the Esc key and type :x and press Enter to exit and save changes.

share|improve this answer

You must log in to answer this question.