1 min read

Screen command in UNIX

Screen command in UNIX
Photo by Jake Walker / Unsplash

Screen is a very useful command to have in your toolbox if you frequently use interactive sessions on your supercomputer logged in through a VPN. A VPN typically has a time limit, and you may get disconnected from it without any warning when you have poor internet connection. Screen program allows you to resume an interactive session on the supercomputer if you get disconnected at any time. Following are some screen commands :

  • screen (start screen)
  • ctrl + a + c (initialize new screen window)
  • ctrl + a + k (kill screen window)
  • ctrl + a + n    or   ctrl + a + p (move from previous and next window)
  • ctrl + a + " (list all screen window)
  • ctrl + a +  A (rename current window)
  • ctrl + a + d (detatch screen)
  • screen -dr (resume screen)
  • ctrl + a + S      or      ctrl + a + |    (for vertical split)
  • ctrl + a + X (close current region if using split)
  • ctrl + a + :quit (quit the screen session)

Source:
https://linuxize.com/post/how-to-use-linux-screen/ https://opensource.com/article/17/3/introduction-gnu-screen