The most popular UNIX tool for determining a file's type from its magic-bytes signature. The Shrine MIME-type plug-in can use it (or Ruby equivalents) as the analyzer to determine MIME type from content rather than from the user-supplied extension.