2014-11-02 08:34:19 +00:00
|
|
|
# tmux
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Multiplex several virtual consoles.
|
2019-05-14 17:22:09 +01:00
|
|
|
> Homepage: <https://github.com/tmux/tmux>.
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Start a new tmux session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
|
|
|
`tmux`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Start a new named tmux session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
|
|
|
`tmux new -s {{name}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- List sessions:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
|
|
|
`tmux ls`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Attach to a session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
|
|
|
`tmux a`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Attach to a named session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2014-11-04 13:44:44 +00:00
|
|
|
`tmux a -t {{name}}`
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Detach from session:
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2017-04-28 23:34:51 +01:00
|
|
|
`Ctrl + B, D`
|
2014-11-02 08:34:19 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Kill session:
|
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
|
|
|
|
|
|
|
- Kill session when attached:
|
|
|
|
|
|
|
|
`Ctrl + B, x (then hit 'y' for yes)`
|