Created
October 13, 2016 20:25
-
-
Save cterrykenzan/e78e33a34e5ca1762f9920e17c7d46f6 to your computer and use it in GitHub Desktop.
One-liners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get a clean list of processes with listeners. Provides process name, pid, address, and port | |
sudo lsof -P | grep LISTEN | tr -s " " | cut -d " " -f 1,2,9- | sed -e s/TCP\ //g | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment