screen Flashcards
Start screen for the first time
screen
Detach the screen
C-d
Re-attach the screen
screen -r
see how many screen are available
screen -ls
restore screen 7849.pts-0.mint
screen -r 7849
activate logging feature when the first time running screen
screen -L
How to check if I’m in screen session?
echo $STY
detaches a running Screen from its current session and reattaches the session on the local machine.
screen -dr
attaches to a running session without detaching from its current attachment. This argument is especially useful when you and another user are trying to access the same session at the same time.
screen -x
detaches a running session from its current attachment and performs a force reattachment. This is useful when the -dr option is unsuccessful.
screen -DDR
forces a Screen to resize all of its windows to the current window when it attaches.
screen -A
starts a Screen session but instead of loading a shell it will load an arbitrary command. If you create additional Screen windows they will also run this command.
screen -X [command]