In this lesson, we'll learn how to detach from a running tmux session and leave it running in the background. Then, we can re-attach to it later.
We'll cover:
How to exit a session by killing all active panes
- Detaching explicitly with C-b d
- Detaching a specific session with C-b D
- Viewing all running tmux sessions using:
tmux ls
- Reattaching with tmux attach -t
tmux attach -t 0
0 is the session id.
If you want to kill all the sessions in tmux:
killall tmux