sometimes, we got a BIG file, but we don't know its file type. so we need to use a tool to peek the very first bytes of the file to find out its file type.

but the file is too big to the normal text editor, i have to wait for a long time!

P.S. I need tools, not the code.

link|improve this question
Fortunately, David was able to successfully guess the OS. – Dennis Williamson Jan 25 '11 at 17:33
feedback

2 Answers

up vote 2 down vote accepted

file is the usual Unix command to determine a file type.

link|improve this answer
feedback

Use a hex editor (e.g. 0xED on Mac OS X). They usually display data as both ASCII and hexadecimal and are usually optimized for handling extremely large files (since they don't do line breaks, it's really not difficult).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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