我怎样才能知道在Linux上什么时候build立了一个当前打开的TCP连接?
我能够使用lsof来获取文件描述符,然后运行stat /proc/<PID>/fd/<file descriptor>来获取date。
lsof
stat /proc/<PID>/fd/<file descriptor>