How to remove file metadata on Linux – a little more privacy
EXIF data in photo images can reveal personally identifiable information such as your camera model, GPS coordinate of shooting, your favorite photo editor software, etc. Metadata in documents and spreadsheets contain author/affiliation information and other editing history.
Introducing MAT (Metadata Anonymisation Toolkit)
apt-get install mat
Scan all files in the current directory and its sub directories, and report their state (clean or unclean):
mat -c .
Check actual metadata detected:
mat -d <input_file>
If you don’t supply any option with mat command, the default action is to remove metadata from files. If you want to keep a backup of original files during cleanup, use ‘-b’ option. The following command cleans up all files, and stores original files as ‘*.bak” files:
mat -b .