UNIX and Linux Daemon Port Bindings

by bluemedora_editor on May 25, 2011

One of the features of the powerful lsof tool allows for the discovery of a daemon’s port bindings. To examine them, simply issue the following command in the terminal.

lsof -nP -i

One may use the grep command to parse the output as seen in the below example.


lsof -nP -i | grep cupsd

Example output:

cupsd   2865 root 4u  IPv4  8075   TCP (LISTEN)
cupsd   2865 root 6u  IPv4  8078   UDP *:631

Above we see that the cupsd process (PID 2865) is bound to TCP 631 and UDP 631.


Get started

Try BindPlane for free. No credit card required.

Sign up
True Visibility
BindPlane for VMware vRealize Operations

True Visibility allows cloud management teams to use VMware vRealize’s powerful machine learning and capacity planning engine across their entire hybrid cloud environment.

Azure Monitor...everything
BindPlane for Microsoft Azure Monitor

Make Azure Monitor your first-pane-of-glass across your entire multi-cloud, multi-database or hybrid platform environment.

Thank you for contacting us. Your information was received. We'll be in touch shortly.