Skip to content

Instantly share code, notes, and snippets.

@jcastellanos926
Last active April 8, 2019 22:14
Show Gist options
  • Save jcastellanos926/c906fb6e7b9001037566f9d1384f76c9 to your computer and use it in GitHub Desktop.
Save jcastellanos926/c906fb6e7b9001037566f9d1384f76c9 to your computer and use it in GitHub Desktop.
Tmux - Command Guide

Tmux - Command Guide

Non-interactive commands

$ tmux: Open a new session

$ tmux ls: List tmux sessions

$ tmux a: Attach the last session

$ tmux a -t {$n}: Attach an existing session

Sessions

^B + d: Disconnect the session

^B + $: Rename the session

^B + s: Switch to another session

^B + : + kill-session: Kill the session

Panels

^B + ": Divide horizontally

^B + %: Divide vertically

^B + (arrow keys): Switch between the panels

^B + x: Close the panel

^B + (space): Change layout

^B + [: Scroll copy mode

Windows

^B + ,: Rename the window

^B + c: Create a new window

^B + n: Go to the next window

^B + p: Go to the previous window

^B + 0-9: Go to the 0-9 window

^B + &: Close the window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment