Forrest logo
back to the plutil tool

plutil:tldr:7261a

plutil: Convert a plist file to a different format, writing to a new file.
$ plutil -convert ${select} ${filename-plist} -o ${path-to-new_file-plist}
try on your machine

The command "plutil" is a command-line tool used in macOS and iOS systems to manipulate property list (plist) files. Here's how the command you provided works:

  1. "plutil": This is the command itself that invokes the plutil tool.

  2. "-convert": This is a flag used to specify the operation to be performed, which is the conversion of a plist file.

  3. "${select}": This is a placeholder for the type of conversion you want to perform. You need to replace "${select}" with the desired conversion type. For example, "xml1" for converting to an XML plist, or "binary1" for converting to a binary plist.

  4. "${filename-plist}": This is a placeholder for the name of the input plist file. You should replace "${filename-plist}" with the actual name of the plist file you want to convert.

  5. "-o": This is another flag used to specify the output file path.

  6. "${path-to-new_file-plist}": This is a placeholder for the path and filename of the new converted plist file. You need to replace "${path-to-new_file-plist}" with the desired output file path.

To use this command, you need to replace the placeholders with the appropriate values based on your needs. For example, if you want to convert a file named "input.plist" to an XML plist and save it as "output.plist", you would use something like:

plutil -convert xml1 input.plist -o output.plist

This will convert the "input.plist" to an XML plist format and save it as "output.plist" in the current working directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the plutil tool