Skip to main content
Ganesh Joshi
Back to Cheatsheets

tmux commands

Updated 2026-02-15

tmux sessions, windows, and panes. Detach, reattach, and split terminals for remote work.

Sessions

  • tmux

    New session.

  • tmux new -s name

    Named session.

  • Ctrl+b d

    Detach.

  • tmux attach -t name

    Attach to session.

  • tmux ls

    List sessions.

Windows and panes

  • Ctrl+b c

    New window.

  • Ctrl+b n / p

    Next / previous window.

  • Ctrl+b %

    Split vertical.

  • Ctrl+b "

    Split horizontal.

  • Ctrl+b arrow

    Switch pane.

  • Ctrl+b x

    Close pane.

tmux commands | Cheatsheet | Ganesh Joshi