Skip to content

GNU Screen cheatsheet


Split screen

  • C-a S split display horizontally
  • C-a | split display vertically
  • C-a tab jump to next display region
  • C-a X remove current region
  • C-a Q remove all regions but the current one


Enable screen logging

screen -L

Enable logging in .screenrc

logfile screen-output.%Y-%m-%d.log                                              
logfile flush 1                                                                 
logtstamp on                                                                    
logtstamp after 5                                                               
deflog on 


Scroll with mouse (add to .screenrc)

termcapinfo xterm* ti@:te@

Example .screenrc

hardstatus alwayslastline 
startup_message off 
hardstatus string '%{wk}%?%-Lw%?%{=b kR}(%{W}%n %t%?(%u)%?%{=b kR})%{= w}%?%+Lw%?%? %{g}]%{W}'
termcapinfo xterm* ti@:te@
scrollback 10000
defshell -zsh