Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
Shell: how to go to the beginning of line when you are inside a screen?

Normally to get to the beginning of a line in a terminal the command is Ctrl+a.

While using GNU screen the Ctrl+a is the escape sequence to enter a screen command.

Is there a default way to move to the beginning of a line while in screen?

share|improve this question

marked as duplicate by enzotib, Mat, Gilles, jw013, Michael Mrozek Feb 10 '12 at 15:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 4 down vote accepted

The sequence to send a literal C-a is explained in the man page:

   C-a a       (meta)        Send the command character (C-a)  to  window.
                             See escape command.

so you should use C-a a.

So, if you have a screen inside the other (for example screen + ssh + screen) you should use that prescription multiple time, and in the case at hand it becomes C-a a a

share|improve this answer
    
Nice! I had always thought since <kbd>Ctrl</kbd>+(<kbd>a</kbd> <kbd>a</kbd>) switched screens that <kbd>Ctrl</kbd>+<kbd>a</kbd> <kbd>a</kbd> would do the same but the release of the <kbd>Ctrl</kbd> key after the initial <kbd>a</kbd> makes it perform the default action <kbd>Ctrl</kbd>+<kbd>a</kbd> when not in a screen. Thank you! –  rudolph9 Feb 7 '12 at 20:46

Why not just configure (if it's required - does it work out of the box?) your home key so it works correctly. Here's a randomly googled reference

share|improve this answer

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