Using screen – the basics

When you’re connected via ssh on a remote server, a sudden disconnection will likely wreck whatever you’re working on and make it difficult to find where you left off. This is where screen comes in handy. It’s like working in a virtual terminal that will stay open until you exit out of it. If you suddenly lose Internet connectivity at your workstation (power loss at home, office, etc..) you can reconnect to your server, enter your screen session and continue where you left off.