Figuring out what’s listening

A trick I learned a long time ago for linux and other *nix systems is to use fuser to check what’s listening. It’s actually a more generic file based command but most versions also allow you to check out sockets too. The standard syntax is fuser -v 81/tcp. That will display a list of the processes listening to the port.

It’s actually a part of the lsof list of open files functionality generally useful on *nix.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s