📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Linux Command Line Screen and tmux

Screen and tmux

5 min read
tmux keeps your terminal session alive after SSH disconnects. Prefix is Ctrl+B: d to detach, c for new window, % to split vertically, and double-quote to split horizontally. Reattach with tmux attach.

Terminal Multiplexers

# tmux
tmux new -s mysession    # new session
tmux attach -t mysession # reattach
tmux ls                  # list sessions

# Inside tmux
# Ctrl+b then:
d   # detach
c   # new window
%   # split vertical
"   # split horizontal
arrow keys # navigate panes