Tuesday, August 01, 2006

screen commands in brief

Some useful commands:
screen by itself starts a new screen terminal
Within screen, ctrl-a is the prefix for commands to screen.

So, Ctrl-a d to detach the screen
screen -x to re-attach to detached screen - it prompts you if more than one screen instance is running.

Within screen,

Ctrl-a c to create a new screen terminal
Ctrl-a w to list all screen terminals (on the title bar)
Ctrl-a 2 to go to the second terminal on screen
Ctrl-a n to go to the nth terminal on screen

Simple Ctrl-d (or exit) will log out of a screen terminal, or in case it is the only screen terminal, screen exits.

No comments:

Post a Comment