commands // 2026-01-05 // ID: REF-Tmux Command List

Tmux Command List


Tmux Command Guide

Tmux is a terminal multiplexer.

Top 10 Useful Commands (Prefix usually Ctrl+B)

1. New Session

tmux new -s hacking

Explanation: Create named session.

2. Detach

(Ctrl+B then d)

Explanation: Leave session running in background.

3. Attach

tmux a -t hacking

Explanation: Re-join session.

4. List Sessions

tmux ls

Explanation: See active sessions.

5. Split Vertical

(Ctrl+B then %)

Explanation: Split pane left/right.

6. Split Horizontal

(Ctrl+B then ")

Explanation: Split pane top/bottom.

7. New Window

(Ctrl+B then c)

Explanation: Create new tab/window.

8. Navigate Panes

(Ctrl+B then Arrows)

Explanation: Move focus.

9. Kill Pane

(Ctrl+B then x)

Explanation: Close current pane.

10. Rename Window

(Ctrl+B then ,)

Explanation: Rename tab.

The Most Powerful Command

tmux a || tmux new -s main

Explanation: Attach to existing session or create a new one (shell alias).