
To avoid that and modify files directly, use the -overwrite_original option.

Add copyright information to image metadata on Linux Copyright Notice and XMP RightsĪfter trying out a lot of metadata tags and testing the results, I recommend using both the -rights and -CopyrightNotice with identical content for copyright information. Metadata information can also be exported to an html document:Įxiftool -h. You can easily package this into a shell function and store in your. So this solution basically copies the file, creates a file at a given point in time, then copies your original file's contents into the created empty file. In addition, the formatting is tricker for SetFile, which does not use ISO Standard date/time formatting.) If that works for you, fine, but I have a lot of scanned photographs and PDF documents from before 1970, and touch will set creation dates outside of the UNIX Epoch, back to 1900. (Why use touch when there are good examples here using SetFile? Well, the dates used by SetFile must be in the "Unix Epoch," which means they must be between -18.

The basic system commands don't really want you messing with the creation date, because, well, it is the creation date, which should really be considered immutable! # cat TempFileName.jpeg > OriginalFileName.jpeg

And for something totally different that uses only basic commands, you can do this: # mv OriginalFileName.jpeg TempFileName.jpeg
