Sunday, March 1, 2015
Handy network connections trick
alias mynetcon='sudo lsof -n -P -i +c 15'
mynetcon
https://plus.google.com/104257421720370350735/posts/LZPwPoGoRom
example:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 654 root 3u IPv6 8214 0t0 TCP *:22 (LISTEN)
sshd 654 root 4u IPv4 8216 0t0 TCP *:22 (LISTEN)
avahi-daemon 807 avahi 13u IPv4 7999 0t0 UDP *:5353
avahi-daemon 807 avahi 14u IPv6 8000 0t0 UDP *:5353
avahi-daemon 807 avahi 15u IPv4 8001 0t0 UDP *:55143
avahi-daemon 807 avahi 16u IPv6 8002 0t0 UDP *:56264
...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment