DEV Community

Cover image for How to Install tmux on Linux
HostnExtra Technologies
HostnExtra Technologies

Posted on

How to Install tmux on Linux

In this article, we'll explain how to install tmux on Linux.

tmux is a terminal multiplexer. It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. o keep SSH sessions running in the background, tmux can be a very quick solution. It can detach and reattach applications where the processes are kept running in the background.

Install tmux on Linux

Platform Install Command
Arch Linux pacman -S tmux
Debian or Ubuntu apt install tmux
Fedora dnf install tmux
RHEL or CentOS yum install tmux
macOS (using Homebrew brew install tmux
macOS (using MacPorts) port install tmux
openSUSE zypper install tmux

After installing tmux, start the tmux session using terminal commands. It won’t take much time to get installed. Once you’ve done installing you can now get started with tmux. To start tmux, just type tmux in the terminal.

# tmux

f you need to run more than one terminal multiplexer to keep all SSH sessions running in the background, in that case, you may find difficulties to switch between tmux to tmux. Here are the command lines to switch one form another.

# tmux detach # tmux attach # tmux attach -t 2

To check all the tmux screen use the tmux list command.

# tmux ls

That's it.

In this article, we have seen how to install tmux on Linux.

Checkout our awesome dedicated servers and KVM VPS.

Top comments (0)