Remote terminals with tmux
tmux
is a terminal multiplexer, which means that it allows us to open and access several terminals within a single screen. A good similitude would be a window manager in a graphical desktop, which allows us to open several windows so that we can switch context while using only one monitor.
tmux
also allows us to detach and reattach to the sessions, so it's the perfect tool in case our connection drops. Think, for example, about performing a software upgrade on a server. If, for whatever reason, the connection drops, it will be equivalent to abruptly stopping the upgrade process in whatever status it was at that moment, which can lead to bad consequences. However, if the upgrade was launched inside tmux
, the command will continue executing, and once the connection is restored, the session can be reattached and the output will be available to be examined.
First of all, let's install it on our system via dnf –y install tmux
. This line...