Reuse terminal workspaces using tmux sessions

Share this video with your friends

Send Tweet

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