The lsof tag has no wiki summary.
3
votes
1answer
45 views
Is there a way to know WHEN a connection has been established?
I'm working with mobile IPv6 and was dealing with lots of zombie connections. I set keepAlive to true and want to test whether old connections are being discarded.
I'm using lsof to list the process ...
0
votes
1answer
23 views
How to quickly determine which process (if any) listens to a serial port
I am looking for a command to see the process listening to a port, e.g. /dev/ttyS0 (with root rights on a Linux system). I can do that with
lsof /dev/ttyS0
but this is really too slow. Also, I ...
0
votes
1answer
164 views
How can I unbind a UDP port that has no entry in lsof?
On my Mac, I have a UDP port that is "already in use", but doesn't have an associated process:
sudo netstat -na | grep "udp.*\.500\>"
shows
udp4 0 0 192.168.50.181.500 *.* ...
4
votes
0answers
46 views
Find processes listening on the wildcard address in `lsof`
Using lsof, I can find all of the processes with a TCP socket listening for connections:
lsof -Pni -sTCP:LISTEN
e.g.:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
cupsd 662 ...