> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/ssh/tmux.md).

# 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/)
