tmux - TeamFlowerPower/kb GitHub Wiki

Tmux Cheat Sheet

For all shortcuts you have to press the PREFIX key combination first (Ctrl+b by default)

Using tmux through ssh sessions. It makes most sense to use the tmux session on the server (where you connect to; NOT on the client) since you less likely reboot your server.

Create a new session

tmux new -s sessionName

List sessions

tmux ls

Detach/Disconnect session

d

Misc

  • t: Big clock until key press
  • ?: List shortcuts
  • :: Prompt

Connect to a preexisting session

tmux a -t sessionName

Panes

  • Ctrl (hold) + arrow (de-/increments per press): Adjust size
  • , , , : Switch to pane

Copy mode

  • [ enters copy mode
  • Ctrl+W exits copy mode

Further reading

⚠️ **GitHub.com Fallback** ⚠️