gnu-screen cheatsheet

Posted on Fri 12 February 2016 in gnu-screen

All commands are inside screen

  • Open new window

    Ctrl+a+c

  • Close windows in screen

    CTRL+a+k

  • Detaching the screen (Coming to normal non-screen window)

    CTRL +a+d

  • GoTo next windows

    CTRL+a+n

  • Goto previous windows

    CTRL+a+p

  • Show list of windows

    CTRL +a+Shift+"

  • Split panes

    CTRL +a+Shift+s

  • Toggle between split panes

    CTRL+a+Tab

  • Closing split panes

    CTRL+a+Shift+x

  • Locking the screen

    CTRL +a+x # Enter password for locking and unlocking

  • Fancy hardstatus

    $ vi /etc/screenrc
    hardstatus on
    hardstatus alwayslastline
    hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "

  • Reattaching the screen

    $ screen -R