Howdy Folks ,
I was going through the documentation for the ‘file’ command.
There it said that the ‘file’ command uses a magic file that contains patterns to recognize file types and that the ‘magic’ file is located under /usr/share/file/
I am using openSUSE 13.1 and am not able to find the file at the particular location. Can anybody help…
I do not know what you mean by “the documentation for the ‘file’ command”. but on my 13.1 system (as on all Unix/Linux systems) that is what I get with
man file
And it says (amongst many other things):
… The information identifying these files is read from the compiled magic file /usr/share/misc/magic.mgc, or the files in the directory /usr/share/misc/magic if the compiled file does not exist …