You're probably aware that most files have an extension such as TXT or EXE after the file name, even though these are not always displayed in Windows. File extensions are how Windows knows what to do ...
There's a lot to learn about image files on the command line, from verifying file format to finding out where and when photos were taken and maybe even getting an unusual view of what they look like.