Skip to main content
Terminal Multiplexer:

How to install tmux

Summary

This guide explains how to install tmux, the open-source terminal multiplexer for Unix-like operating systems, on various Linux distributions and macOS using different package managers. It also includes a verification step to confirm the installation.

Introduction #

Tmux, short for terminal multiplexer, is a powerful tool that allows you to manage multiple terminal sessions within a single window. This guide explains how to install tmux on various Linux distributions and macOS.

Installing tmux on Linux #

Installing tmux is straightforward and can be done using the package manager available on your operating system.

Debian-based distributions #

If you are using a Debian-based distribution such as Ubuntu or Linux Mint, you can install tmux using the Advanced Packaging Tool (APT):

sudo apt update
sudo apt install tmux

Red Hat-based distributions #

For Red Hat-based distributions like Fedora, CentOS, or Rocky Linux, you can use the Dandified Yum (DNF) package manager:

sudo dnf install tmux

On older versions of CentOS that use the Yellowdog Updater, Modified (YUM), you can use:

sudo yum install tmux

Arch Linux-based distributions #

If you are using Arch Linux or an Arch-based distribution like Manjaro, you can install tmux using the Pacman package manager:

sudo pacman -S tmux

openSUSE-based distributions #

For openSUSE users, tmux can be installed using the Zypper package manager:

sudo zypper install tmux

Installing tmux on macOS #

If you are using macOS, you can install tmux using the Homebrew package manager. First, ensure that Homebrew is installed, and then run:

brew install tmux

Verifying the installation #

After installation, you can verify that tmux is installed correctly by checking its version:

tmux -V

If the installation was successful, this command will output the installed tmux version. To get started using tmux, check out the tmux cheat sheet.

Further readings #

Sources and recommended, further resources on the topic:

Author

Jonas Jared Jacek • J15k

Jonas Jared Jacek (J15k)

Jonas works as project manager, web designer, and web developer since 2001. On top of that, he is a Linux system administrator with a broad interest in things related to programming, architecture, and design. See: https://www.j15k.com/

License

How to install tmux by Jonas Jared Jacek is licensed under CC BY-SA 4.0.

This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. To give credit, provide a link back to the original source, the author, and the license e.g. like this:

<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://www.ditig.com/how-to-install-tmux">How to install tmux</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://www.j15k.com/">Jonas Jared Jacek</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-SA 4.0</a>.</p>

For more information see the Ditig legal page.

All Topics

Random Quote

“Good design comes from a deep understanding of the technologies behind the scenes.”

Jeffrey Veen American designer and design strategistThe Art & Science of Web Design, - IT quotes