tldr/pages/common/tmux.md

38 lines
629 B
Markdown
Raw Permalink Normal View History

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