Dave McGuire wrote:
apophis$ cat > foo.txt
GIF89a is a half-decent file format.
apophis$ file foo.txt
foo.txt: GIF file, v89
here 'file' also tries to pull the resolution information out, making it think
that foo.txt is a 26912 x 8307 image...
(Imagemagick's 'identify' command tends to do pretty well at making sense of
totally unknown image formats, incidentally, and is probably on-topic these days)
Look at the man pages for the "file"
command on your system to see
where it stores its database.
Traditionally it was /etc/magic wasn't it? Here it seems to be /etc/file/magic
though.