Skip to main content

How to Use "screen" Command

One of the amazing tools in Linux is screen command. In this post, we will look at some of the popular command line options for screen command.

  • Installing: sudo apt-get install screen
  • Staring screen: screen
  • Controlling with screen instead of shell: "ctrl+a"
  • Screen help page: "ctrl+a" "?"
  • Creating windows: "ctrl+a" "c"
  • Switching between windows: Next - "ctrl+a" "n"; Previous - "ctrl+a" "p"
  • Detaching from screen: "ctrl+a" "d"
  • Reattach to screen: screen -r
  • Logging screen output: "ctrl+a" "H"
  • Getting alerts: Activity - "ctrl+a" "M"; Inactivity - "ctrl+a" "_"
  • Locking screen session - "ctrl+a" "x"
  • Stopping screen: exit or :"ctrl+a" "k"
  • Creating a screen session with a particular name: screen -S screen_name

Source: https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/



You may also interested in reading:

Comments