info
- screen manager with vt100/ansi terminal emulation
demo
-
create
-
create with name
$ ssh root@demo $ screen -S gree2 $ # do sth $ ls ... $ mkdir demo ... $ ls ...
-
detach running session
$ ^a d
-
-
list all sesstions and reattach
-
list
$ screen -ls There are screens on: 13494.gree2 (Detached) 11576.pts-0.node4 (Detached) 2 Sockets in /var/run/screen/S-root.
-
reattach
$ screen -r gree2 $ # or $ screen -r 13494 $ # do sth $ ls ... $ mkdir demo ... $ ls ...
-
-
share session multi display mode
-
attach to a not detached screen session
$ # on a different host $ ssh root@demo $ screen -ls There are screens on: 13494.gree2 (Attached) 11576.pts-0.node4 (Detached) 2 Sockets in /var/run/screen/S-root. $ screen -x gree2 $ # do sth $ ls ... $ mkdir demo ... $ ls ...
-
-
destroy current window
-
use ^a k
$ ^a k Really kill this window [y/n] [screen is terminating] $ screen -ls There is a screen on: 11576.pts-0.node4 (Detached) 1 Socket in /var/run/screen/S-root.
-
-
download docker image from screen session
-
start a new sesstion
$ screen -S mssql $ docker pull microsoft/mssql-server-linux:2017-CU8 2017-CU8: Pulling from microsoft/mssql-server-linux f6fa9a861b90: Pull complete da7318603015: Pull complete 6a8bd10c9278: Pull complete ... $ ^a d
-
wait
-
reattach mssql session
$ screen -r mssql docker pull microsoft/mssql-server-linux:2017-CU8 2017-CU8: Pulling from microsoft/mssql-server-linux f6fa9a861b90: Pull complete da7318603015: Pull complete 6a8bd10c9278: Pull complete d5a40291440f: Pull complete bbdd8a83c0f1: Pull complete 3a52205d40a6: Pull complete 6192691706e8: Pull complete 1a658a9035fb: Pull complete 655776156720: Pull complete 0c695ca332a2: Pull complete Digest: sha256:70e2a80e516935701ca109c57fa2aede152460d2da6f20d349afce8a93156a28 Status: Downloaded newer image for microsoft/mssql-server-linux:2017-CU8 $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE microsoft/mssql-server-linux 2017-CU8 229d30f7b467 2 weeks ago 1.43 GB
-
kill mssql session
$ ^a k [screen is terminating] $ screen -ls No Sockets found in /var/run/screen/S-root.
-