# ===== SCREEN ===== # Start a new screen session $ screen # List running screen sessions $ screen -list # Attach to a running screen $ screen -r scr.een.session.id # If you get detached from a screen because the network connection died $ screen -D -RR scr.een.session.id # Quit a screen tab $ ^d or exit ^a c create a new screen tab ^a d detach from a screen session ^a n advance to next tab ^a p advance to previous tab ^a [ start copy mode (scrollback) Esc exit copy mode # ===== TMUX ===== # Start new tmux session $ tmux # List running tmux sessions $ tmux list-sessions # Attach to a running tmux session $ tmux attach -t session_number # Quit a tmux tab or pane $ ^d or exit ^b c create a new tmux tab ^b x kill a tab that's become unresponsive ^b w show a list of tabs/windows ^b d detach from a tmux session ^b n advance to next tab ^b p advance to previous tab ^b [ start copy mode (scrollback) Esc exit copy mode ^b % split tab into an left and right pane ^b " split tab into top and bottom pane ^b t display time ^b up, ^b down, ^b left, ^b right cycle through panes within a tab ^b ^up, ^b ^down, ^b ^left, ^b ^right resize current pane