Quick Tip: Use screen to keep your application running in the background in terminal

Every once in a while you need to keep an application running in an SSH session after you logout. To be able to logout and log back in later, you’ll need to install an application called “screen”.

To install screen on Ubuntu/Debian type apt-get install screen in the terminal.

To use screen:

  • Start the application by using the command: screen application
  • Get the application running how you want it to run and then type CTRL + A + D to return to the terminal
  • Now you can do whatever else you need to in terminal or logout of SSH while your application runs in the background
  • To get back to your application, simply log back in via SSH or open terminal again and type screen -r and your session will come back up