listing listening ports in linux code example
Example 1: netstat command in linux to check specific port
netstat -tulpn | grep :80
Example 2: check what ports are open linux
## if you use linux
sudo ss -tulw
netstat -tulpn | grep :80
## if you use linux
sudo ss -tulw