How to use screen on linux

Check if screen is installed

> which screen

output: /usr/bin/screen (if screen is installed. Else install screen first)

Starting screen

> screen

Leaving screen

> exit

Create new screen

> ctr+a c

Switching between screens

> ctrl+a

List all windows

> ctrl+a w

Go to a window numbered 0-9

> ctrl+a 0-9

Checking screens

> screen -ls

output: There are screens on:

31619.ttyp2.gigan (Detached)

4731.ttyp2.gigan (Detached)

2 Sockets in /tmp/screens/S-root

Reattaching to screen

> screen -r 31619.ttyp2.gigan