Skip to content

Instantly share code, notes, and snippets.

@Knase
Created October 1, 2021 08:29
Show Gist options
  • Save Knase/07977c369100bc93aba0279bd6d45501 to your computer and use it in GitHub Desktop.
Save Knase/07977c369100bc93aba0279bd6d45501 to your computer and use it in GitHub Desktop.
To check the listening ports and applications on Linux
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 ## see a specific port such as 22 ##
sudo nmap -sTU -O IP-address-Here
ps aux | grep mysqld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment