Monday, June 23, 2014

Using screen in Linux.

Saving shell sesions using screen



  1. To start a new session using screen 'screen'
  2. To create new terminal with in screen 'ctrl + a, c'
  3. To switch between terminals in a screen use 'ctrl + a, n' for next, 'ctrl + a, p' for previous.
  4. To detach a screen and return to regular terminal 'ctrl + a, d'
  5. List all the screen sessions 'screen -ls'
  6. Connecting to a detached screen. 'screen -r <screen-name>'
  7. If a session is active and you don't have access to it, try detaching it first and reconnecting.