Skip to content

Instantly share code, notes, and snippets.

@henri
Last active April 24, 2023 04:59
Show Gist options
  • Save henri/cc9b5fdd16c5d9097b03f145d07f95cc to your computer and use it in GitHub Desktop.
Save henri/cc9b5fdd16c5d9097b03f145d07f95cc to your computer and use it in GitHub Desktop.
lsof cheat sheet
# show open TCP ports which are listening on the host
sudo lsof -nP -iTCP -sTCP:LISTEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment