Skip to content

Instantly share code, notes, and snippets.

@andrewp-as-is
Last active March 18, 2024 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewp-as-is/85813f11a0038867a449f1624c3a7810 to your computer and use it in GitHub Desktop.
Save andrewp-as-is/85813f11a0038867a449f1624c3a7810 to your computer and use it in GitHub Desktop.
macOS list ports #macos
#!/usr/bin/env bash
PORT=8013
lsof -nP -iTCP:$PORT | grep LISTEN;:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment