Screen

From BITS wiki
Jump to: navigation, search

Normally, if you log out of your unix terminal environment, you will loose all running tasks (even the background ones). Sometimes you wish to run several workflows at a time and separate them so that your mind does not get twisted trying to keep track of it all.

Screen ([1]) is the answer to your problem. A screen is a packages environment which persists even after logout as long as the machine is not restarted. By using several 'screen's, you are able to divide your work according to workflows and even temporarily quit a screen to focus on something else.

# most useful screen commands <ctrl> means the control key.

# create a new screen
screen
 
# or better, give your Session a name!
screen -S give-it-a-name
 
# exit a screen 
<ctrl>+A c
 
# list available screens (pid-number.name)
screen -ls
 
# restart a given screen
screen -r -screen-pid-number-or-name
 
# when only one screen is available (type just)
screen -r
 
# when in screen, create a new window
<ctrl>+A c
 
# navigate to the next window in this screen
<ctrl>+A <spacebar>
 
# navigate one window back in this screen
<ctrl>+A p

References:
  1. [get here the full gnu screen manual]



[ Main_Page ]