Screen

Last update on October 30, 2008 08:55 AM by netty5
Published by netty5

Screen




Intro


Screen is a full screen window manager, which divide a terminal between several processes. Using screen you can handle a task from on a PC, by detaching the terminal to which it is bound and resume it on another terminal or PC.

Screen read all typed commands through the shell from which it was launched. In order to interact directly with its window manager, it must automatically be launched using the sequence of keys "CTRL-a" followed by a key or another key sequence.

Opening a screen session


To open a screen session from a terminal (or Xterm) type the following command:

screen -r

Seperating a screen session


To detach a screen session and return to his connection shell, simply type:
CTRL-a  d

Return to a screen session


To return to a screen session, type:

screen –r

Closing a screen session


To close a screen session, simply type:
CTRL-a  \


Note that :"\" (backslash) is obtained using the following combination of keys "Alt Gr +8".

Seperating a window into several parts


The separation of your terminal into two parts is done in three phases. Note that you can repeat the procedure, split screen in more than two parts.

Splitting the terminal


CTRL-a  MAJ-s

Switch to the new window


CTRL-a  TAB

Open a new terminal


CTRL-a  c

Managing the different windows


Select a particular window


If several active windows:

CTRL-a   "

or
CTRL-a   n

or

CTRL-a   '

Resizing a window


To modify the size of a window, just:

To extend it:
CTRL-a :resize + n


To decrease the size:
CTRL-a :resize – n


Adjust all windows to the same size:
CTRL-a :resize =

Renaming a window


To rename a window, simply type:

CTRL-a  MAJ-a


Enter the new name for the window, and then validate using the Enter key.

Making use of screen


Connecting via ssh on machine B
Launch screen
screen


Launching a command for an active task
Hold task (suspending it)

CTRL + Z

Set to background

bg% 1


Protection of the task using nohup
nohup top & 


Seperating the screen

CTRL + a => d


Disconnect

exit


Launching screen on the machine B from a shell
Recovering the screen

screen-r


Verifying the task

jobs


Setting task as priority
fg %1
Best answers for « Screen » in :
Computer screen or monitor Show Introduction to computer monitors A monitor (or screen) is a computer display unit. There are generally said to be two families of monitors: Cathode-ray tube monitors (or CRT for short), which are used with most desktop computers. They are...
Print Screen (Windows, Mac OS X and Unix/Linux) Show How to make a Print Screen (Windows, Mac OS X and Unix/Linux) What is a Print Screen? How to make a Print Screen (Windows) How to make a Print Screen (Mac OS X) How to make a Print Screen (Unix/Linux) Screen Capture Softwares What is a...
Displaying video from a PC on a television screen Show Displaying video from a PC on a television screen TV output S-Video output Configuration under Windows FAQ You can display the output from the computer on a television (or even the sound on an amplifier). But that implies that the...
BLUE SCREEN - ATI2DVAG ShowBLUE SCREEN - ATI2DVAG 1. Update drivers 2. Disable fast write When launching a game, you receive an error message on blue screen telling you that windows has detected an error caused by ATI2DVAG. 1. Update drivers This problem...
Fix a rotated screen problem ShowFix a rotated screen problem Solution 1 Solution 2 Solution 3 Solution 4 If you are facing a 90/180 degrees rotation issue with your displayed screen, this can be either due to a problem with your graphic card or a wrong manipulation...
Enable / Disable Welcome screen ShowEnable/Disable Welcome screen Using the Control Panel Through the registry This tip allows you to disable the display of the login screen (Welcome), and use the classic login screen. It only works for Windows 2000 and XP. Using the...
Download Animated Screensaver Maker ShowIf you have pictures of visual qualities and of high resolutions which you would definitely like to use as screen of wakefulness, without making them therefore march in diaporama. This tool is made for you. Animated Screensaver Maker is as his name...