2014-11-02 08:34:19 +00:00
|
|
|
# tmux
|
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
> Terminal multiplexer. It allows multiple sessions with windows, panes, and more.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/tmux/tmux>.
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- Start a new session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
|
|
|
`tmux`
|
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- Start a new named session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
`tmux new-session -s {{name}}`
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- List existing sessions:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
|
|
|
`tmux ls`
|
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- Attach to the most recently used session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
`tmux attach-session`
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Attach to a named session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
`tmux attach-session -t {{name}}`
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- Detach from the current session (with prefix Ctrl-B):
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
`Ctrl-B d`
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- Kill a session by name:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2014-11-04 13:44:44 +00:00
|
|
|
`tmux kill-session -t {{name}}`
|
2018-01-27 08:16:07 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
- Kill the current session (with prefix Ctrl-B):
|
2018-01-27 08:16:07 +00:00
|
|
|
|
2020-02-12 11:48:30 +00:00
|
|
|
`Ctrl-B :kill-session<Enter>`
|