Screen is a persistent virtual terminal manager, useful when working on a remote server. More info here.

sudo su
apt update && apt install screen

Commonly used commands

screen -S <screen_name> – create new screen
screen -ls – list all screens
screen -x <screen_name> – attach to screen session
screen -X -S <screen_name> quit – kill screen

When attached to screen session

ctrl + A + [ – copy mode, scroll with pgup, pgdown. Exit copy mode with esc.
ctrl + A + C – creates new screen in current session
ctrl + A + N – next screen, if any
ctrl + A + P – previous screen, if any
ctrl + A + D – detach from screen

Liked it? Take a second to support Ana Bujan on Patreon!
Categories: Uncategorized

Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x