Forrest logo
back to the exiv2 tool

exiv2:tldr:5989a

exiv2: Print all metadata (Exif, IPTC, XMP) with interpreted values.
$ exiv2 -P kt ${filename}
try on your machine

The command exiv2 -P kt ${filename} is used to extract and display the metadata information of a file specified by ${filename} using the exiv2 tool.

Here's a breakdown of the components:

  • exiv2: It is a command-line tool used for reading, writing, and manipulating image metadata.
  • -P kt: These are command-line options provided to the exiv2 tool.
    • -P: Specifies a particular action or processing option for exiv2.
    • kt: The kt option is used to display the key-value pairs of individual metadata properties.
  • ${filename}: It represents a placeholder for the actual filename or path of the file you want to extract metadata from. You need to replace ${filename} with the actual file name or path.

When the command is executed, exiv2 will parse the file specified by ${filename} and display the key-value pairs for each metadata property it finds. This can include information such as image dimensions, creation date, camera details, and more.

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 exiv2 tool