Michael Dykman wrote:
> On my Ubuntu system, the database underlying the file command is found at
> /usr/share/file/magic.mgc . 
> 
> It is a binary file;

That binary file is compiled from all the plain-text files in 
/usr/share/file/magic .

The format for those “magic files” (aka patterns, signatures) is in the man 
pages for “file”. Here’s one transcript available on the web:

http://man7.org/linux/man-pages/man4/magic.4.html 
<http://man7.org/linux/man-pages/man4/magic.4.html>

-Dan


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to