Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Created April 13, 2020 10:10
Show Gist options
  • Save aamsur-mkt/2d4a3871cb89163bb7212c2a8e2727d8 to your computer and use it in GitHub Desktop.
Save aamsur-mkt/2d4a3871cb89163bb7212c2a8e2727d8 to your computer and use it in GitHub Desktop.
Find out where is bin file by its port
# where is node_exporter bin by its port (9100)
sudo fuser 9100/tcp
#Sample outputs:
#9100/tcp: 4966
sudo ls -l /proc/4966/exe
#Sample outputs:
#lrwxrwxrwx 1 ubuntu ubuntu 0 Apr 13 13:27 /proc/4966/exe -> /usr/local/bin/node_exporter
# the bin is here >>> /usr/local/bin/node_exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment