How to attach to an existing tmux session?

poopcoder

Poopcoder

Posted on December 17, 2020

How to attach to an existing tmux session?

To get the list of existing tmux session use tmux ls command.

> tmux ls
0: 1 windows (created Wed Dec 16 16:45:19 2020)
Enter fullscreen mode Exit fullscreen mode

Here there is one session that already exists. To attach to this particular session ‘0’ we can use the following command.

> tmux attach-session -t 0
Enter fullscreen mode Exit fullscreen mode

This will open the existing tmux session.

💖 💪 🙅 🚩
poopcoder
Poopcoder

Posted on December 17, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related