💾 Archived View for eoghan.speleo.dev › posts › 2019 › screen-cheat.gmi captured on 2022-03-01 at 15:08:21. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Date: 2019-04-08
Last Updated: 2019-04-08
Install Screen: `brew install screen`
Enter a new Screen Session: `screen` or `screen -S <name>`
Detach from current screen session: `Ctrl + a + d`
List screen sessions: `screen -ls`
List the processes: `ps -e | grep PID_OF_SCREEN_SESSION`
Reattach to a screen session: `screen -r PID_OF_SCREEN_SESSION`
Execute a command in a screen session: `screen -X -S PID_OF_SCREEN_SESSION <cmd>`