Howtos / Articles

Display process name and ID of network connections

The netstat command on Linux shows you any active and listening network connections on the computer. If there is a connection active that you are not sure what it is, you can use the ‘-p’ (or ‘–programs’) parameter to show the process id (PID) and process name of the network connection/socket.


Note: to use the -p parameter, you need to have root privileges, otherwise the ‘PID/Program name’ field will just display ‘-’.

Share this howto article!
  • Facebook
  • Twitter
  • Reddit
  • email

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>