How do I get a List of programs connected to internet in linux?
-
24-06-2021 - |
Question
In linux, how can I get a list of programs that are currently connected to (and are receiving data) from the Internet?
Commands like iftop are good but does not show statistics based on process.
Solution
netstat
will show you all established connections. Use -p
for it to show the process associated with each one. It won't show you anything about the amount of data they're receiving though.
OTHER TIPS
you can use lsof utility which lists information about files opened by processes
lsof -i
will show used internet resources only
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow