tldr/pages/common/tmux.md

37 lines
459 B
Markdown
Raw Normal View History

2014-11-02 08:34:19 +00:00
# tmux
> 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
- Start a new tmux session:
2014-11-02 08:34:19 +00:00
`tmux`
- Start a new named tmux session:
2014-11-02 08:34:19 +00:00
`tmux new -s {{name}}`
- List sessions:
2014-11-02 08:34:19 +00:00
`tmux ls`
- Attach to a session:
2014-11-02 08:34:19 +00:00
`tmux a`
- Attach to a named session:
2014-11-02 08:34:19 +00:00
`tmux a -t {{name}}`
2014-11-02 08:34:19 +00:00
- Detach from session:
2014-11-02 08:34:19 +00:00
`Ctrl + B, D`
2014-11-02 08:34:19 +00:00
- Kill session:
2014-11-02 08:34:19 +00:00
`tmux kill-session -t {{name}}`
- Kill session when attached:
`Ctrl + B, x (then hit 'y' for yes)`