command to check open ports code example
Example 1: check what ports are open linux
## if you use linux
sudo ss -tulw
Example 2: how to check listening ports on a server
sudo ss -tulwn | grep LISTEN
## if you use linux
sudo ss -tulw
sudo ss -tulwn | grep LISTEN