Skip to content

Instantly share code, notes, and snippets.

@Archisman-Mridha
Last active May 10, 2024 05:05
Show Gist options
  • Save Archisman-Mridha/d0157da78bac7e1675aa15cfdfa2eb97 to your computer and use it in GitHub Desktop.
Save Archisman-Mridha/d0157da78bac7e1675aa15cfdfa2eb97 to your computer and use it in GitHub Desktop.
Tmux cheatsheet

Use ctrl + b + : to get into command mode.

Session management

  • Start a new session - tmux | tmux new -s session-name
  • List existing sessions - tmux ls
  • Attach to a session - tmux a -t session-name
  • Detach from the session - ctrl + b + d
  • Destroy a session - tmux kill session -i session-name

Pane management

  • Vertical split - ctrl + b + % | Horizontal split - ctrl + b + "
  • Navigate between panes using ctrl + b + arrow
  • Delete pane - ctrl + b + x
  • Make pane fullscreen - ctrl + b + z
  • See pane index - ctrl + b + q

Window management

  • Create new window - ctrl + b + c
  • Switch between windows - ctrl + b + n
  • Rename window - ctrl + b + ,
  • List all windows and sessions - ctrl + b + w
  • Go to window - `ctrl + b +
  • Kill window - ctrl + b + &

Others

  • Install tmux packages - ctrl + b + I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment