You can determine the type of file with the
file command; see the manpage for 'file'. Once determined, you can strip of the first layer of your file and run
file again to figure out what you have now. Etc etc.
I assume that you are aware that extensions have no meaning in Linux; anybody can call it anything
So from the filename, one can not always determine what it is.