Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 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
add comment

Your Answer

 
discard

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.