Apple OSX Tips and Tricks


Clear DNS Cache:

Command to clear DNS Cashe on OSX

dscacheutil -flushcache

On OSX versions 10.5 and lower:

lookupd -flushcache

ISO - Convert ISO to DMG:

Command to convert an ISO file to a DMG file on OSX

hdiutil convert -format UDRW -o /path/to/target.dmg /path/to/imagefile.iso

ISO - Convert DMG to ISO:

Command to convert a DMG file to a ISO file on OSX

hdiutil convert /path/to/imagefile.dmg -format UDTO -o /path/to/target.iso
mv /path./to/target.iso.cdr target.iso

Unhide User Lib Directory:

By default in Finder you no longer see the user lib directory. Perform the following steps to show it in Finder.

chflags nohidden /Users/<Username>/Library