screen_session
This is an old revision of the document!
Screen Sessions
Install
yum install screen Total download size: 494 k Installed size: 795 k
Creating a screen session
You can use screen sessions but typing the following command:
screenCreating a screen session with session name:
screen -S <name>
Listing Screen Sessions
screen -listor
screen -lsExample
# screen -list There are screens on: 6470.pts-1.hostname (Detached) 6839.pts-1.hostname (Detached) 2 Sockets in /var/run/screen/S-root.
Detach from screen sessions
The following command can be used to detach from a screen session without closing it.
This will leave the current command running:
"Ctrl-A" and "d" to detach the screen
Closing the screen session
"Ctrl-D"
Entering back into a screen session
screen -r 6470.pts-1.hostname
Sharing a screen Session
First create a screen session
Screen -S shareList the screen sessions on second device:
# screen -ls There is a screen on: 3541.share (Attached) 1 Socket in /var/run/screen/S-root.If you simply try to reattach to the screen session you will not be able to:
# screen -r 3541.share There is a screen on: 3541.share (Attached) There is no screen to be resumed matching 3541.share.You will need to run the following command
screen -x 3541.shareAnything written on one screen session will now be mirrored on the other
Cycle through screen sessions
"Ctrl-a"
screen_session.1464762963.txt.gz · Last modified: 2024/05/23 07:26 (external edit)