Difference between revisions of "Screen Commands"

From Genome Analysis Wiki
Jump to navigationJump to search
(Created page with "Use screen to save a session so that your commands continue to run even when you log off. You really only need to use the top 3 commands. The rest are "advanced" usage. {| ...")
 
Line 1: Line 1:
 
Use screen to save a session so that your commands continue to run even when you log off.
 
Use screen to save a session so that your commands continue to run even when you log off.
  
You really only need to use the top 3 commands.  The rest are "advanced" usage.
+
You really only need to use the top commands.  The rest are "advanced" usage.
  
 
{| border="1" cellspacing="0" cellpadding="2"
 
{| border="1" cellspacing="0" cellpadding="2"
Line 10: Line 10:
 
|-
 
|-
 
| Resume an already running screen || screen -r
 
| Resume an already running screen || screen -r
 +
|-
 +
| Create screen with name || screen -S name
 
|-
 
|-
 
|colspan="2"|
 
|colspan="2"|
Line 29: Line 31:
 
| Kill Current Window || Ctrl-a k
 
| Kill Current Window || Ctrl-a k
 
|-
 
|-
| Go to Window 0-9 || Ctrl-a #
+
| Go to Window 0-9 || Ctrl-a (#)
 
|-
 
|-
 
| Go to Next Window || Ctrl-a n
 
| Go to Next Window || Ctrl-a n
Line 44: Line 46:
 
|-
 
|-
 
| Scroll in Window || Ctrl-a Esc (then move up/down)
 
| Scroll in Window || Ctrl-a Esc (then move up/down)
 +
|-
 +
| Prompt for window name/# to switch to || Ctrl-a '
 +
|-
 +
| Present a list of all windows for selection. || Ctrl-a "
 +
|-
 +
| Rename session || Ctrl-a : sessionname (name)
 
|}
 
|}

Revision as of 12:44, 6 February 2015

Use screen to save a session so that your commands continue to run even when you log off.

You really only need to use the top commands. The rest are "advanced" usage.

From outside of Screen
Start a new screen screen
Resume an already running screen screen -r
Create screen with name screen -S name
From inside of Screen
Detach Ctrl-a d
"Advanced Commands" From inside of Screen
Help Ctrl-a ?
Create New Window Ctrl-a c
List All Windows Ctrl-a w
Kill Current Window Ctrl-a k
Go to Window 0-9 Ctrl-a (#)
Go to Next Window Ctrl-a n
Go to Previous Window Ctrl-a p
Name Window Ctrl-a A
Log Current Window Ctrl-a H
Quit Screen Ctrl-a \
Show Window Num & Tile Ctrl-a N
Scroll in Window Ctrl-a Esc (then move up/down)
Prompt for window name/# to switch to Ctrl-a '
Present a list of all windows for selection. Ctrl-a "
Rename session Ctrl-a : sessionname (name)