Screen commands

From wiki.network-crawler.de
Jump to: navigation, search

Useful screen commands

Call screen with

screen

With Ctrl+a you'll get into command mode.
to open a new screen session type

:screen

Or Ctrl+c
To change the title of the current screen do

:title Hello

To show open screens

:windowlist

Copy n paste with

To change the screen mode to copy mode do Ctrl+a+Esc
To mark things press spacebar - to copy the marked things into th buffer press spacebar again To paste it Ctrl+a and then AltGr+9 - say ^] :(


To switch between the screens use Ctrl+n to the next screen Ctrl+p to the previous
or Ctrl+space To switch to the last you used to a Ctrl+a Ctrl+a

To display the screens you opened

Edit ~/screenrc and add:

caption always "%{kG}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kG}%?%+Lw%?"

Or just type (in control mode)

invoke command within screen (daemon)

e.g.: starting program with gdb

screen -dmS <name_of_screen> gdb -ex run <program_name> &

A useful setup for a screen config from a friend of mine:

Just have a look at
screen config