Using Tmux

Tmux provides convenience but is not necessary. It allows you to 1) open many terminals ("windows") within one terminal and 2) close the terminal window without exiting the server

Install

  1. sudo apt update

  2. sudo apt install tmux

Usage

There are 4 basic commands:

  1. Create new tmux window w/ name: tmux new -s <windowName>

  2. Leave tmux window: ctrl + b, then enter d (you must be in the window)

  3. Reenter tmux window: tmux attach -t <windowName>

  4. Permanently close tmux window: ctrl + b, enter x , then enter y (you must be in the window)

In your non-tmux terminal, run tmux ls to see all active windows.

Last updated