Difference between revisions of "Screen"

From Linuxintro
imported>ThorstenStaerk
(See also)
imported>ThorstenStaerk
 
Line 31: Line 31:
  
 
= See also =
 
= See also =
* [http://man-wiki.net/index.php/1:screen screen's man page]
+
* [http://ss64.com/bash/screen.html screen cheat sheet]

Latest revision as of 09:02, 23 April 2014

Screen is a program that acts as a terminal multiplexer. That means you will be able to

  • resume your command line session on another computer even if it was disconnected
  • share your keyboard actions with another person on another computer
  • log your session to a file

Using Screen

To start a new screen, open a console and enter:

screen

If you loose your connection, you can resume your screen by calling

screen -r

If you want to share a screen session with another user, let him log in as your user and call

screen -x

After calling screen,

Control-a, Control-c creates a new terminal screen

Control-a, " shows a list of terminal screens

Control-a, n switch to the next screen

Control-a, p switch to the previous screen

Control-a, a switches to the most-recently-used screen

Control-a, d kills the actual shell

Control-a, c creates a new shell

Control-a, H logs your session to a plain-text file

See also