How to Install tmux on Linux

HostnExtra Technologies
2 min readApr 10, 2021
How to Install tmux on Linux
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

Arch Linuxpacman -S tmux
Debian or Ubuntuapt install tmux
Fedoradnf install tmux
RHEL or CentOSyum install tmux
macOS (using Homebrewbrew install tmux
macOS (using MacPorts)port install tmux
openSUSEzypper 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.

--

--

HostnExtra Technologies

HostnExtra was founded in 2016. All of our servers are located in the continental United States and United Kingdom. View more details https://www.hostnextra.com