Identifying which processes are using network ports on a Mac

Steve Neal Linux Leave a Comment

Typically I’d use netstat’s -o flag to identify the process ID when listing networking activity from a Linux/Unix machine. Unfortunately this option is not available with netstat on ┬áMac OS X. I recently has a rogue process (I suspected a virus) on my Mac that was creating thousands of connections out to hosting providers. Luckily I found this fix, which …

Count the processors on a Linux server

Steve Neal Linux Leave a Comment

If you need to see how many processors there are available on a Linu/Unix server, use the following command from your shell: cat /proc/cpuinfo | grep processor each of the processors will be listed in the output. For example, on a server I use the output looks like this: processor : 0 processor : 1 processor : 2 processor : …