0

(I'm a dos guy , I always liked to view files in norton commander and see inside stuff etc)

however over the years I've noticed that each file(well , most of) ( binary files ) has header :

For example exe file has the MZ header :

enter image description here

PGP file has also a header ;

enter image description here

Pdf file has also a header ;

enter image description here

ZIP file has also a header ;

enter image description here

etc

So my question : is there any complete list of those headers ? where can i find it ?

Royi Namir
  • 137
  • 14

2 Answers2

3

On a Linux system the file /usr/share/misc/magic is the source for the magic.mgc file used by the file command. I doubt it's complete for every file type though.

The format of the file is described in the magic man pages.

user9517
  • 114,104
  • 20
  • 206
  • 289
1

There is no such complete list, because there is no central registry or authority for file headers. Any of these could be re-used by some new company with a new file format.

mfinni
  • 35,711
  • 3
  • 50
  • 86
  • IMHO - this has nothing to do with registry. those headers was much before event MS knew what is registry. it's more a stamp of a file. So I dont think there is a connection to windows shell extensions in regisrty. – Royi Namir Oct 15 '12 at 14:20
  • 3
    I did not capitalize the word "registry", because I was not referring to the Windows Registry. If you want a public domain name that doesn't overlap with anyone else's, you have to purchase it from a domain name registrar. There is no such analogous organization for file headers. – mfinni Oct 15 '12 at 14:21
  • oh sorry. language barrier ...:-) – Royi Namir Oct 15 '12 at 14:22