Leo’s Tech Blog
Published in

Leo’s Tech Blog

Some OSX Command Line Stuff

Posted by Leo Soto on July 17th, 2012.

A couple of neat tricks that I use from time to time:

  • $ mdfind: How could I be a Mac user for almost 3 years without knowing that you could use spotlight from the command line!?
  • $ purge: Flushes the disk cache. Usually, you don't mess with that stuff and just let do the OS to do its magic. Unfortunately, since installing Lion I sometimes see a huge performance degradation when many applications are being used at the same time. By running this command, after a brief pause everything returns to normal.
  • $ dnscacheutil -flushcache: I believe this is self-explanatory. Useful when useless information is obtained from a flaky proxy server and cached.
  • $ networksetup -setdnsservers Wi-Fi Use Google's Public DNS servers (see situation above)
  • $ networksetup -setdnsservers Wi-Fi empty: Go back to default DNS provided by DHCP.

Originally published at techblog.leosoto.com on July 17, 2012.




A personal blog on tech stuff. Includes older entries that used to live on techblog.leosoto.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Leo Soto

Leo Soto

CEO at ContinuumHQ.com, MITI.cl founder. Passionate software developer & MBA

More from Medium

How to Build a Kubernetes Server on a Raspberry Pi cluster Part 1

First Tools for your new Hetzner Kubernetes Cluster

Full setup of a Kubernetes K3D cluster managed by Flux on a local Git server

Youtube recording of the live session on the interactive mode

Editing your github commits for Kubernetes contributors