Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a unix noob using zsh on mac osx and playing with tmux.

I opened up a terminal window in iTerm2 then ran tmux. Once that was opened I created a few new windows with ctrl+b c. I then closed iTerm2. Afterwards I opened up iTerm2 again and ran ps and now I see something like this

  PID TTY           TIME CMD 
73322 ttys000    0:00.19 -zsh
70385 ttys002    0:00.16 -zsh
67526 ttys003    0:00.12 -zsh
67570 ttys004    0:00.12 -zsh
67614 ttys005    0:00.13 -zsh

Is there a way I can somehow attach to those terminal windows again? Maybe using iTerm2 or tmux? I tried tmux attach -t ttys000 but as I understand it, I need to be attaching to a named tmux session.

share|improve this question
up vote 4 down vote accepted

You can do tmux ls to list available sessions and tmux attach -t session to re-attach.

share|improve this answer
straight to the point, i like that – Uninoo Feb 13 '11 at 4:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.