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".
migrated from stackoverflow.com Apr 23 '12 at 2:34
This question came from our site for professional and enthusiast programmers.
In 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
this is will only work with EPS-files (and only those that actually have the Creator field set)