Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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  
superuser.com –  Izzy May 4 '10 at 19:31

2 Answers 2

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

 
discard

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.