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>`