Every application that accesses the network does it via a port. Listing the open ports, the application using a port and the user running the application is a way to track the expected and unexpected uses of your system. This information can be used to allocate resources as well as checking for rootkits or other malware.
Network traffic and port analysis
Getting ready
Various commands are available for listing ports and services running on a network node. The lsof and netstat commands are available on most GNU/Linux distributions.
How to do it...
The lsof (list open files) command will list open files. The -i option...