Server Fault is a question and answer site for system and network administrators. 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

How can I find out at what time a currently open TCP connection was established on Linux?

share|improve this question
So, you have solved this problem and you don't have an actual question? – Sven Aug 2 '11 at 20:55
Again: Is this a problem for you or do you want to force a discussion? In the question recently closed you stated that you solved this. – Sven Aug 2 '11 at 21:25
Final comment, why not contribute the answer own answer anyway instead of trying to quiz people? I'm sure they would be appreciative and you might even get a point or two instead of earning scorn. – mdpc Aug 2 '11 at 21:33
We do like people to drop solutions to problems, so go ahead and post yours. If other people have better/different solutions, the better off we all are. – sysadmin1138 Aug 2 '11 at 21:35
4… It's perfectly acceptable to ask a question and then answer it yourself. – Iain Aug 2 '11 at 21:39
up vote 8 down vote accepted

I was able to use lsof to get the file descriptor, then ran stat /proc/<PID>/fd/<file descriptor> to get the date.

share|improve this answer

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.