Many switches are different, output is different and it is very frustrating to experienced users.
I ran into
netstat command recently. I needed to find out pid of
memcached server on my mac. Spend few mins but no luck. Mac based
netstat command won't understand
-p switch. Aaargh! I had to use
lsof to get my job done.
Here is how I did it -
sudo lsof -i -P|grep memcache