Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

(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


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

share|improve this question

closed as off topic by Ward, Sven, Michael Hampton, joeqwerty, Zoredache Oct 15 '12 at 15:30

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 3 down vote accepted

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.

share|improve this answer

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.

share|improve this answer
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
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.