Skip to content

Instantly share code, notes, and snippets.

@karancraze
Last active August 1, 2018 14:47
Show Gist options
  • Save karancraze/e56c7f57e8a2fd30eb29e33a98d4a539 to your computer and use it in GitHub Desktop.
Save karancraze/e56c7f57e8a2fd30eb29e33a98d4a539 to your computer and use it in GitHub Desktop.
Teeny Tiny Tmux Cheat Sheet

Tmux Cheat Sheet

Sessions

New Session

tmux new [-s name] [cmd] (:new) - new session

Switch Session

tmux ls - list all sessions

tmux switch [-t name] - switch to an existing session

tmux a [id] [-t name] - attaches to an existing session

<C-b> + d - detach the currently attached session

<C-b> + ) - next session

<C-b> + ( - previous session

Session Management

<C-b> + s - list sessions

<C-b> + $ - name session

Close Session

tmux kill-session [-t name]

tmux kill-server - Kills all the running sessions

<C-b> + & - Kills the current running session

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