screen Flashcards Preview

TI - Bash > screen > Flashcards

Flashcards in screen Deck (12)
Loading flashcards...
1
Q

Start screen for the first time

A

screen

2
Q

Detach the screen

A

C-d

3
Q

Re-attach the screen

A

screen -r

4
Q

see how many screen are available

A

screen -ls

5
Q

restore screen 7849.pts-0.mint

A

screen -r 7849

6
Q

activate logging feature when the first time running screen

A

screen -L

7
Q

How to check if I’m in screen session?

A

echo $STY

8
Q

detaches a running Screen from its current session and reattaches the session on the local machine.

A

screen -dr

9
Q

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.

A

screen -x

10
Q

detaches a running session from its current attachment and performs a force reattachment. This is useful when the -dr option is unsuccessful.

A

screen -DDR

11
Q

forces a Screen to resize all of its windows to the current window when it attaches.

A

screen -A

12
Q

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.

A

screen -X [command]