Preferences

You can use lsof in Linux to show connexions:

lsof -i -n -P | grep "\\-\>" | awk '{a[\$1"_p"\$2]++;}END{ for (it in a){print it,a[it]}}' | sort -nr -k2,2

This project uses conky to display the current connexions:

https://github.com/viviparous/plonky/blob/main/plonky.pl


unfortunately malicious lkms and userland rootkits can hide processes/connections from lsof/netstat

https://github.com/gianlucaborello/libprocesshider

that awk expression fails here (v5.1)
Ah yes, it doesn't require the escapes that I pasted above.

awk '{a[$1"_p"$2]++;}END{ for(it in a){print it,a[it]}}'

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal