Skip to content

Instantly share code, notes, and snippets.

@Knase
Created October 25, 2022 20:58
Show Gist options
  • Save Knase/adcb8f3a599a952703d6586b74fd454c to your computer and use it in GitHub Desktop.
Save Knase/adcb8f3a599a952703d6586b74fd454c to your computer and use it in GitHub Desktop.
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