Screen Command

less than 1 minute read

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 

Creating a screen session with a particular name:

screen -S screen_name

Some useful shortcuts

  • 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”

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

Categories:

Updated:

Comments