Created
May 8, 2022 16:10
-
-
Save phamngsinh/494b8af95ca449da8009e332f87ce101 to your computer and use it in GitHub Desktop.
How to check if port is in use on Linux or Unix
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
| sudo lsof -i -P -n | grep LISTEN | |
| sudo netstat -tulpn | grep LISTEN | |
| sudo ss -tulpn | grep LISTEN | |
| sudo lsof -i:22 ## see a specific port such as 22 ## | |
| sudo nmap -sTU -O IP-address-Here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment