Mac OS X netstat show PID process ID
Home
Articles
Java
Speaking
Raspberry Pi
Calculators
FIX Protocol
Published October 11th, 2012
On most Linux flavours, netstat can show the process using the port with the -p switch. Here is how to get the same information on OS X
Using the lsof command and grep you can get the same information (albeit in a different format)
Linux:
netstat -antp | grep 4000
Mac OS X:
lsof -Pnl +M -i4 | grep 4000
Similar Articles
OSX encode mp3 on command line
Mac OSX crib sheet
VirtualBox on Mac OSX
Mac OSX batch convert PNG to JPEG with quality setting
OSX Take Screenshot
Applet graphics corruption in Java 7 update 10, 11, 13 on Mac OSX
Mac OS X mount remote filesystem locally using sshfs
Virtualbox tips for Mac OS X
Mac OS X install subversion using MacPorts
Mac OS OSX add jars to Eclipse build path
All content on this website is Copyright 2003 - 2024 Chris Newland
Privacy Policy