Unix utilities on Mac OS X are quite painful to use.
port install coreutils +with_default_names and a few other such replacements fix most of them, but it leaves some in broken Mac OS X defaults – most annoyingly
netstat, but I'm sure I could think of a few more.
I'm guessing that commands like
netstat are quite OS specific, so just grabbing sources of their Linux equivalents and recompiling won't work.
What's the best equivalent of these and other such commands that works on Mac OS X?