Jump to content

Screen: Difference between revisions

465 bytes added ,  6 December 2007
m
Line 67: Line 67:


=== Detaching and reattaching screen ===
=== Detaching and reattaching screen ===
The beauty of screen is that it can remain running when you are logged out, therefore allowing you to run time consuming processes in the background.
One of the most popular features of screen is that it can keep you logged in even when you're offline. This means you can leave programs running or even stay on IRC even when you're not online. To this, you just detach from screen instead of exiting it. To detach from screen without exiting, use the following command:
Dettach using
ctrl-a d
  ctrl + a + d
 
You'll then be returned to the prompt with a message telling you screen has been detached, like so:
 
 
[[Image:screen5.jpg]]
 
 
Later, you'll come back online and want to reattach to your screen session. To reattach a detached screen, use this command at the prompt:
  screen -dr


To reattach an allready detached screen, use.
screen -d -r
The -d will dettach any "attached" screens and -r will reattach your screen.
The -d will dettach any "attached" screens and -r will reattach your screen.


Note that if you have more than one screen session available, you will need to specify the screen id you wish to open.
If you have more than one screen session available, you will need to specify the screen id you wish to open. To find out these ids, run this:
 
screen -ls
 
You'll be given a list of the currently available screens.


=== Killing screen ===
=== Killing screen ===
496

edits