Macos List Ports For Processing
Jun 2 2011
- Hello, On Linux, I can use 'ps -efL grep processname' to list all threads that belong to a running process.L has a different meaning on AIX and I could not find an equivalent flag in the man pages.
- Find the Process ID (PID) Using lsof Using the lsof command we can find the process ID (PID) for a specific port that is in a LISTEN state. In a terminal type the following and replace the “” with our port number. Lsof -nP -iTCP -sTCP:LISTEN grep.
Macos List Ports

Mac List Ports Used By Process
That's if the installation has added it to the list of processes that will be started by OS X's process manager called launchd. (If you're curious, here's more on launchd.) 1. N Displays addresses and port numbers in numerical form.o Displays the owning process ID associated with each connection.p proto Shows connections for the protocol specified by proto; proto may be any of: TCP, UDP, TCPv6, or UDPv6.
