Tag Archives: noatime

MacOSX command line tricks

Here's a list of MacOSX commands I had to search for all over the internet because I needed to use them lately and I'm sure I'm going to forget since I'm not a big OSX user. So here they are for when I'll need them again ... 🙂

In linux when you want to know which ports are opened and what applications listen on those ports you use netstat -lnp
In MacOSX you get the listening ports with this:

  1.  

Want to see what system call am application is making use strace, for MacOSX thats:

  1.  

Here's how to install an application that comes packaged in a .dmg:

  1.  

uninstall a package

  1. span style="color: #ff0000;">'\n' '\0'

pidof required by some mysql scripts

  1. span style="color: #ff0000;">"{if (\$5==\"$1\") print \$1}";
  2.  

remount with noatime

  1.  

More to come ...