Home centos troubleshooting
Post
Cancel

centos troubleshooting

How to check if port is in use on Linux or Unix

1
2
3
4
5
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
This post is licensed under CC BY 4.0 by the author.