Screen and tmux let you run long-running commands that survive SSH disconnections.
screen
# Start a new session
screen -S mysession
# Detach from session
Ctrl+A, then D
# List sessions
screen -ls
# Reattach to session
screen -r mysessiontmux
# Start a new session
tmux new -s mysession
# Detach
Ctrl+B, then D
# List sessions
tmux ls
# Reattach
tmux attach -t mysession
# Split panes
Ctrl+B, then % # Vertical split
Ctrl+B, then " # Horizontal split
Ctrl+B, then arrow # Switch panesInstall
# Ubuntu/Debian
apt install screen tmux -y
# RHEL-based
dnf install screen tmux -y