Home > HowTo, Linux > screen

screen

December 19th, 2012 Leave a comment Go to comments

Screen command
Screen is a linux tool to help manage connections.
“Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells).”
Its able to reestablish lost sessions, and to have multiple connections.

1) Using Screen
Screen is started from the command line just like any other command:
$ screen
You may or may not get a text message about screen.
If you do not, then you probably think nothing has happened, but it has!
Type “Ctrl-A” then “?”
To open a new  window: “Ctrl-A” “c”
To cycle thru windows: “Ctrl-A” “n”

2)Leaving Screen
There are two ways to get out of screen.
a. The first is just like logging out of a shell. You kill the window with “Ctrl-A” “K”
b. The second way to leave screen is to detach from a windows. This method leaves the process running
and simple closes the window but later you will be able to recover or re-attach’.
You can detach from the window using “Ctrl-A” “d”

3)Recovering a session
To list all open sessions do
$ screen -ls
To re-attach
$ screen -r

4)Tips
To quickly go to a window(using a menu), use “Ctrl-A” ” (thats a quote mark, ctrl-a then a “).
Name a session, use “Ctrl-A” “A” (delete the default bash and type a session name)
Logging a session using “Ctrl-A” “H”, creates a running log of the session
Screen can monitor a window for activity or lack thereof. This is great if you are downloading large files, compiling, or watching for output. If you are downloading something or compiling, you can watch for silence. To start the monitor, go to the screen you want to monitor and use “Ctrl-A” “M” to look for activity or “Ctrl-A” “_” to monitor for silence.

Categories: HowTo, Linux Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.

VAMOVE *

*