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.

link|improve this question

50% accept rate
1  
superuser.com – Izzy May 4 '10 at 19:31
feedback

2 Answers

up vote 0 down vote accepted

ctrl-A and ctrl-E

link|improve this answer
feedback

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)
link|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
feedback

Your Answer

 
or
required, but never shown

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