Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Is there a tool that can determine the file type from containing data?

Short: I need a program that can identify the filetype of a file regardless of it's extension

Long: Back in the day (15y ago) I had a MS-DOS program that would identify the filetype of "any" file you gave it, with it I was able to find some hidden content on games and progs. Now I have a program that I'm sure uses some kind of itermediate filetype, but I can't for the love of god find out wich one is it. The program can be for windows or linux (deb).

share|improve this question

marked as duplicate by Ignacio Vazquez-Abrams, slhck, Gnoupi, Krazy_Kaos, random Apr 12 '12 at 16:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

up vote 2 down vote accepted

Linux has the standard utility file, which can identify files. e.g.

$ file example.gif
example.gif: GIF image data, version 87a, 93 x 8

Though it's not flawless, sometimes it misidentifies files or (when it can't guess) it just gives that the file is data

For Windows, there is TrID which is more sophisticated.

share|improve this answer
add comment

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