screen
Start a new session
screen -S mysession
Start a new session with the name mysession
Rename session to newname
Detach from session
screen -d name
Detach a running session
screen -r mysession
Attach to a session with the name mysession
screen -ls
List running sessions / screens
Create window, run console
Rename current window
Close current window
Close all windows
Last-visited active window
Previous window
Next window
Select window by number
Split display horizontally
Split display vertically
Jump to next display region
Navigate between screen
Remove current region
Remove all regions but the current one
Save splitting position
Enter copy mode
Paste
vi ~/.screenrc
Edit configuration file
Enter screen command
Redraw window
# Use bash
shell /bin/bash
autodetach on
# No annoying startup message
startup_message off
# Display the status line at the bottom
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.kW}%-w%{.bW}%t [%n]%{-}%+w %=%{..G} %H %{..Y} %Y/%m/%d %c"
# Setup screens
chdir /home/pi/ # All screens start in ~/Sites folder
screen -t 'server' 0 bash # Make first screen for running server
screen -t 'specs' 1 bash # Make screen for running tests
screen -t 'workspace' 2 bash # Make screen for general work i.e. running git commands
Config sample for ~/.screenrc
screen --help
Show help
Show shortcuts