Introduction
Sometimes you start a task on a remote server and want it to keep running even if you disconnect. tmux helps by creating sessions that stay alive, so you can reconnect later and continue where you left off.
When you want to run a long script on a remote server but might lose connection.
When you need to switch between multiple command-line tasks without closing them.
When you want to share a terminal session with a teammate.
When you want to keep your work organized in separate windows and panes.
When you want to disconnect from a session and reconnect later without stopping your programs.