I was expecting to see those text files on my Ubuntu 14.04 but my
/usr/share/file/magic directory is empty, only the mgc is populated.

On Tue, Oct 6, 2015, 1:39 PM Dan Bron <[email protected]> wrote:

> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to