Last active
February 11, 2021 08:54
-
-
Save laszlomiklosik/4004662 to your computer and use it in GitHub Desktop.
Linux which application-process uses a given 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
# run: | |
sudo netstat -lpn |grep :8080 | |
# this will output something like: | |
tcp6 0 0 :::8080 | |
:::* LISTEN 6782/java | |
# interpretation: | |
The process id is 6782 | |
# Mac OS | |
sudo lsof -nP -i:4200 | grep LISTEN | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment