Forrest logo
back to the plutil tool

plutil:tldr:c8fe1

plutil: Convert one or more plist files to XML format, overwriting the original files in-place.
$ plutil -convert xml1 ${file1-plist file2-plist ---}
try on your machine

The command plutil -convert xml1 ${file1-plist file2-plist ---} is a command-line instruction that is commonly used in macOS systems.

The plutil command is a utility provided in macOS to manipulate property list (plist) files. Plist files are used for storing configuration data, preferences, and other information in a structured manner.

The -convert option is used to specify the type of conversion to be performed on the input file. In this case, xml1 is used as the argument, indicating that the input plist file(s) should be converted to the XML format version 1. XML (eXtensible Markup Language) is a markup language that is both human-readable and machine-readable.

${file1-plist file2-plist ---} is not a complete command by itself. It is a placeholder that suggests you can replace ${file1-plist file2-plist ---} with the actual file names or paths of the plist files you want to convert.

For example, if you have two plist files named file1.plist and file2.plist, you would substitute ${file1-plist file2-plist ---} with file1.plist file2.plist.

The --- is used to indicate the end of command-line options and the beginning of file arguments.

So, the command plutil -convert xml1 file1.plist file2.plist would convert file1.plist and file2.plist to XML format, storing the converted files in the same location with the .plist extension replaced by .plist.xml.

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