1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/tmux.md

39 lines
638 B
Markdown
Raw Normal View History

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