2025-03-14 21:59:59 -06:00
|
|
|
# tmux
|
|
|
|
|
|
|
|
|
|
> Terminal multiplexer.
|
|
|
|
|
> It allows multiple sessions with windows, panes, and more.
|
|
|
|
|
> See also: `zellij`, `screen`.
|
|
|
|
|
> More information: <https://github.com/tmux/tmux>.
|
|
|
|
|
|
|
|
|
|
- Start a new session:
|
|
|
|
|
|
|
|
|
|
`tmux`
|
|
|
|
|
|
|
|
|
|
- Start a new named session:
|
|
|
|
|
|
|
|
|
|
`tmux new -s {{name}}`
|
|
|
|
|
|
|
|
|
|
- List existing sessions:
|
|
|
|
|
|
|
|
|
|
`tmux ls`
|
|
|
|
|
|
|
|
|
|
- Attach to the most recently used session:
|
|
|
|
|
|
|
|
|
|
`tmux attach`
|
|
|
|
|
|
|
|
|
|
- Detach from the current session (inside a tmux session):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl b><d>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new window (inside a tmux session):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl b><c>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Switch between sessions and windows (inside a tmux session):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`<Ctrl b><w>`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Kill a session by name:
|
|
|
|
|
|
|
|
|
|
`tmux kill-session -t {{name}}`
|