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.
pacman -S tmuxDebian or Ubuntu
apt install tmuxFedora
dnf install tmuxRHEL or CentOS
yum install tmuxmacOS (using Homebrew
brew install tmuxmacOS (using MacPorts)
port install tmuxopenSUSE
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.
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
In this article, we have seen how to install tmux on Linux.