Created
April 13, 2020 10:10
-
-
Save aamsur-mkt/2d4a3871cb89163bb7212c2a8e2727d8 to your computer and use it in GitHub Desktop.
Find out where is bin file by its port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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