Wednesday, December 16, 2015

Wind Screen Up

During evening developsing it might hurt to stay connected while database gets dumped. In the world of console driven operating systems there are several nice solution to that. One of them is the screen command.
With screen one can detach from an ssh session without interrupting the current execution, and later on it is easy to reattach and see what has happened.

Usage

Start it with:
$ screen
Detach:
$ <CTRL+a d>
Reattach:
$ screen -r
Reattach when multiple sessions:
$ screen -r <sid>
List running sessions:
$ screen -ls

Rejoyce!



No comments:

Post a Comment