I need to view via terminal in what program the file was created.
Something like :
$ "command" /Volumes/USB1/IMG_0231.jpg
Creator = "Adobe Photoshop Elements 3.0 Macintosh".
Any thoughts?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityIn general this is not possible, because the program that makes the file should integrate this information (metadata). And this may not be the case with every program/device/file type.
For file types such as JPEG, made produced by a camera, there is an exif wikipedia data, which can contain quite a lot - geolocation, model, exposure, etc. But if you make a jpeg file, you are responsible for the information. And you may leave it blank.
Another example are the files which contain only text - *.txt, *.sh, *.c, *.cpp etc. They contain only text, and not an additional metadata.
with eps-files you might have success with something like
sed -e '/^%%Creator:/!d' -e 's/^%%Creator: *//' MYFILE.EPS
this is will only work with EPS-files (and only those that actually have the Creator field set)
file filename
utility, which will output a generic description, like 'shell script', 'c program', 'text data', etc. Good luck.