# Tmux

tmux — terminal multiplexer

> tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

## Usage

* New Session

```bash
tmux
```

* List Session(s)

```bash
tmux ls
```

* Detach Session

```bash
tmux detach
```

Or shortcut `ctrl-b` then `d` after it, can be used.

* Attach Session

After logging into the system, run:

```bash
tmux attach
```

***Real Cheatsheet:*** [***TmuxCheatsheet***](http://tmuxcheatsheet.com/)

***Alternative(s):*** [***TecMint***](https://www.tecmint.com/keep-remote-ssh-sessions-running-after-disconnection/)
