Server Fault is a question and answer site for system and network administrators. 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

What are the control keys to move the cursor to the beginning and end of the command-line? The Home and End keys don't work in Terminal on Mac OS X.

share|improve this question
1 – Izzy May 4 '10 at 19:31
up vote 0 down vote accepted

ctrl-A and ctrl-E

share|improve this answer

shift-Home and Shift-End will work.
So will disabling the brain-damaged default Home & End behavior:

  1. Open Terminal Preferences->Settings
  2. Select your profile
  3. On the Keyboard tab find & remove the bindings for Home (scroll to start of buffer) & End (scroll to end of buffer)
share|improve this answer
(Note that if your console app treats the shift-home/shift-end combo specially the above won't work, so I recommend disabling the brain-damaged default behavior :-) – voretaq7 May 4 '10 at 19:25
I like this answer, too, but I can't mark both. – user24932 May 4 '10 at 22:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.