Detach from session

sessions

// what it does

`Ctrl + b d` runs `detach-client`, disconnecting your terminal from the session while leaving the session and every process inside it running in the background on the server. This is the whole point of tmux: detach, close your laptop or drop SSH, then reattach later with everything intact. It returns you to the shell you launched tmux from.

// shortcut

Ctrl + bd

// gotcha

Detaching only disconnects your client — it never stops the session, so a `kill-session` is required to actually free it. Note lowercase `d` detaches yourself immediately; the uppercase `D` variant instead lets you pick which client to detach.