#
Background terminals
To prevent network drops from killing a long running training, analysis, or commands, one can use screen
or tmux
to execute long running commands or background processes
#
Install
# Debian based systems
sudo apt install tmux -y
#For MacOS
brew install tmux
#
Tmux commands
# To create a new session
tmux new -s <session-name>
# To go out of session without killing the pane,
# Press: Ctrl+B, D
# To enter an existing session
tmux a -t <session-name>
# To go out of session and killing the pane,
# Press: Ctrl+D
# Listing sessions
tmux ls
# Kill session without being inside it
tmux kill-session -t <session-name>