---
# System prepended metadata

title: tmux

---

tmux
===

- installation:
    - MacOS: `brew install tmux` 
    - Ubuntu: `sudo apt install tmux`
- check version:
    - `tmux -V`

How to use?
---
- combination key (prefix):
    - < ctl + b > + your combinition key
        > ex: < ctl + b > + c
- Start:
    - `tmux`
- **Session**:
    - Create Session:
        - `tmux new -ssession_name`
        - `tmux new-session -ssession_name`
    - Exit:
        - `exit`
    - Attach Session:
        - `tmux attach -tsession_name`
    - Detach Session:
        - `<prefix> + d`
        - `tmux kill-session -t2`
    - Session list:
        - `tmux ls`
    - Change Session number:
        - `<prefix> + $`
    - RESET:
        - `tmux kill-server`
- **Window**
    - Create Window
        - `<prefix> + C`
    - Change Window's Name
        - `<prefix> + ,`
    - Kill Current Window
        - `<prefix> + &`
- **Manage Panes**
    - Split |||:
        - `<prefix> + "`
    - Split ---:
        - `<prefix> + %`
    - Kill Panes
        - `<prefix> + x`
        - 