detach tmux code example Example 1: how to leave tmux session ctrl + b, then press d Example 2: tmux detach # Ctrl + b and then press d