Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 use tmux attach to start tmux and have the following lines in my tmux.conf:

new  -n TeX   bash
neww -n Shell bash

After starting the terminal emulator and running pgrep I get the following:

 ~  $ pgrep -lL tmux
41479 /Users/nmk/.homebrew/bin/tmux attach
41481 /Users/nmk/.homebrew/bin/tmux attach

The tmux session I see is 0. What is the second process doing? Are those two the client and the server?

share|improve this question
up vote 3 down vote accepted

Yes, one is the server. If you do ps x you'll see that one is attached to a pty and one isn't. If you run another separate tmux session, you'll see three processes - two with ptys and one, the server, without.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .