Tmux Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Tmux Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

tmux

Multiplex several virtual consoles.

Maintainer: Romain Francoise



Section: admin

Install tmux

  • Debian apt-get install tmux Click to copy
  • Ubuntu apt-get install tmux Click to copy
  • Alpine OS apk add tmux Click to copy
  • Arch Linux pacman -S tmux Click to copy
  • Kali Linux apt-get install tmux Click to copy
  • CentOS yum install tmux Click to copy
  • Fedora dnf install tmux Click to copy
  • Raspbian apt-get install tmux Click to copy
  • macOS brew install tmux Click to copy

Multiplex several virtual consoles.

How to use tmux?

Below are few example commands for tmux that you can use in the terminal.

Start a new tmux session:
tmuxClick to copy
Start a new named tmux session:
tmux new -s nameClick to copy
List sessions:
tmux lsClick to copy
Attach to a session:
tmux aClick to copy
Attach to a named session:
tmux a -t nameClick to copy
Detach from session:
Ctrl + B, DClick to copy
Kill session:
tmux kill-session -t nameClick to copy
Kill session when attached:
Ctrl + B, x (then hit 'y' for yes)Click to copy
Installation of latest tmux command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.