To detach from a tmux session, press Ctrl+b followed by d.
Detaching from a tmux session allows you to leave your session running in the background. This is one of tmux's most powerful features - you can disconnect from your terminal and reconnect later with all your windows and applications still running exactly as you left them.
Ctrl+b d - Standard detach commandCtrl+b D - Choose which client to detach (if multiple are connected)tmux detachtmux attach or tmux a - Attaches to the most recently used sessiontmux attach -t session-name - Attach to specific session Use tmux ls to list all active sessions before reattaching.