TMUX Cheat Sheet

Years ago I started taking advantage of tmux - the terminal multiplexer. Like screen, it'll let you run multiple terminals, and your program will stay running when you leave it or lose SSH connections.

Session Management

New session
tmux new

New session with name
tmux new -s sessio­nname

List sessions

tmux ls

Attach to session by name
tmux attach -t sessio­nname

Attach to last session
tmux attach

Kill a session
tmux kill-s­ession -t sessio­nname

Switch to next session
Ctrl+b )

Switch to last session
Ctrl+b (

Detach from session
Ctrl+b d

Rename session
Ctrl+b $

Vertical Split Screen

Create vertical split
Ctrl+b %

Go to next pane
Ctrl+b o

Go to previous pane
Ctrl+b ;

Move active pane to the right
Ctrl+b }

Move active pane to the left
Ctrl+b {

Move edge of pane right (resize)
Ctrl+b right arrow

Move edge of pane left (resize)
Ctrl+b left arrow

Convert pane to window
Ctrl+b !

Kill pane
Ctrl+b x

Horizontal Split Screen

Create horizontal split
Ctrl+b "

Go to next pane
Ctrl+b o

Go to previous pane
Ctrl+b ;

Move active pane down
Ctrl+b }

Move active pane up
Ctrl+b {

Move edge of pane up (resize)
Ctrl+b+up arrow

Move edge of pane down (resize)
Ctrl+b­+left arrow

Convert pane to window
Ctrl+b !

Kill pane
Ctrl+b x

comments powered by Disqus