Loading...

Knowledge Base

SSH screen commands

Use the screen utility in your Secure Shell (SSH) session to keep processes running even after you disconnect from the server. This tool is particularly useful for long-running tasks, as it allows them to continue running in the background without interruption if your SSH session ends.

 

Common SSH Screen Commands

screen to start a screen session
screen -ls to list existing screen sessions with their ids
screen -R (screenid) to enter that particular screen session
Ctrl + a + d detach from the screen session (alternatively you can type the exit command in the session itself)
Ctrl + d end screen session
Ctrl + a + H creates a running log of the session, to capture the process
Ctrl + a + x locking your screen session with a password
Ctrl + a + M monitor for activity
Ctrl + a + _ monitor for inactivity

 

 

 

Loading...