I have an issue. I need to view via terminal in what programm the file was created.

Something like :

$ "command" /Volumes/USB1/IMG_0231.jpg

Creator = "Adobe Photoshop Elements 3.0 Macintosh".

For example , if i clicks right mouse button on this file, I can see information about program in which the file was created. That is why , i think, this information is stored somewhere.