tmuxtmuxHome

Choose documentation 1

latest

tmux manual version

Latest (3.7c) 3.7c 3.2a
English

tmux

Create terminal workspaces, keep sessions running, and control windows and panes from the command line.

Install

Debian / Ubuntu

Update the package index:

$ sudo apt update

Install tmux:

$ sudo apt install tmux

Fedora / RHEL / CentOS

On older RHEL or CentOS releases, use yum in place of dnf.

Install tmux:

$ sudo dnf install tmux

Arch Linux

Install tmux:

$ sudo pacman -S tmux

macOS / Homebrew

Install tmux with Homebrew:

$ brew install tmux

Windows / psmux

psmux is a separate native Windows implementation. For upstream tmux in WSL, select the Linux distribution you use there.

Install psmux with WinGet:

$ winget install --id marlocarlo.psmux --exact

NixOS

Add to /etc/nixos/configuration.nix:

programs.tmux.enable = true;

Apply your configuration:

$ sudo nixos-rebuild switch

Compile from source

Requires a C compiler, make, Git, autoconf, automake, bison, pkg-config, and the libevent and ncurses development packages.

Clone tmux 3.7c:

$ git clone \
  --branch 3.7c \
  --depth 1 \
  https://github.com/tmux/tmux.git tmux-3.7c

Enter the source directory:

$ cd tmux-3.7c

Generate the configuration script:

$ sh autogen.sh

Configure the build:

$ ./configure

Compile tmux:

$ make

Install the compiled program:

$ sudo make install
Esc

Type to search.

Reference previewOpen reference