How to view or edit pdf and image metadata from command line on Linux

There are various tools that allow you to edit the metadata in digital photos or pdf documents. ExifTool is a powerful command-line utility that can read or write meta information in a file. This tutorial describes how to view or edit metadata in pdf documents or digital pictures from the command line on Linux with ExifTool.