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.Github Link
On Fedora, RHEL, CentOS, AlmaLinux, Rocky Linux:
sudo dnf install tmux
tmux
tmux new
tmux new-session
:new
tmux new -s session-name
:new -s session-name
tmux new -A -s session-name
:new -A -s session-name
tmux new -s session-name -d
:new -s session-name -d
tmux a
tmux at
tmux attach
tmux attach-session
tmux a -t session-name
tmux attach-session -t session-name
:a -t session-name
tmux list-sessions
tmux ls
:ls
:switch -t [session-name-or-id]
:kill-session
:kill-session -t [current-session-name-or-id]
:kill-session -t [session-name-or-id]