Table of Contents
Basics of using screen
working on a terminal, you want to keep shells open when you leave and have multiple shells open on one terminalconnection. screen is what you want.
man screen
starting
screen -D -R
this will start screen and immediately bring you to the first terminal. If a screen is already running it will reattach.
opening a new window
ctrl-a c open ctrl-a A assign a name to actual window ctrl-a k kill current window
switching between windows
ctrl-a 0 goto window 0
ctrl-a 1 goto window 1
....
ctrl-a ' ask for window to go
special stuff
ctrl-a a send ctrl-a = go to first char in line ctrl-a ESC scrollback-mode enables you to scroll back up/down using cursors-keys
closing screen
ctrl-a D D deattach screen and logout.
This will leave screen and all windows running,
so you can reatach next time
ctrl-a d deattach screen
This will leave screen and all windows running,
so you can reatach next time
i if you want to exit scren, just exit all terminals (typing exit in a bash) and if the last terminal is closed, screen will close too.
knowwiki/basics/screen_basics.txt · Last modified: 2009/05/13 08:44 by peter



