Search This Blog

Linux screen command

Start and enter screen session

screen

Start and enter a named screen session

screen -S myscreen

Detach from the screen session

Ctrl+a d

Reattach to a screen session

screen -r

Terminate a screen session (inside the session)

Ctrl+d

Terminate a screen session (outside the session)

screen -XS [SessionID] quit

List commands inside the session

Ctrl+a ?

List screen sessions

screen -ls

Manage Windows in a screen session

Ctrl+a c Create a new window (with shell).
Ctrl+a " List all windows.
Ctrl+a 0 Switch to window 0 (by number).
Ctrl+a A Rename the current window.
Ctrl+a S Split current region horizontally into two regions.
Ctrl+a | Split current region vertically into two regions.
Ctrl+a tab Switch the input focus to the next region.
Ctrl+a Ctrl+a Toggle between the current and previous windows
Ctrl+a Q Close all regions but the current one.
Ctrl+a X Close the current region.

No comments:

Post a Comment