plutil - a useful command line tool to decode / encode plist files

plutil is very useful command line utility to decode or encode the .plist files if you do not GUI tools like PropertyList Editor or PrefSetter etc.

  1. Type the following command in terminal to convert the binary1 format of plist fle to xml1 format.
    $ sudo plutil -convert xml1 /Library/Preferences/com.my.newplist.plist
  2. Now Edit the .plist file.
  3. Type the following command in terminal to convert the xml1 format plist fle back again to binary1 format. 
           $ sudo plutil -convert binary1 /Library/Preferences/com.my.newplist.plist

Popular posts from this blog

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?