Results 1 to 4 of 4

Thread: Unable to find /usr/share/file/magic

  1. #1

    Default Unable to find /usr/share/file/magic

    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...

    Regards

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,402

    Default Re: Unable to find /usr/share/file/magic

    As this is about openSUSE 13.1, it shouldn't be in the Pre-Release/Beta forum.

    This will be moved to the Applications forum and is CLOSE for the moment.
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,402

    Default Re: Unable to find /usr/share/file/magic

    Quote Originally Posted by hcvv View Post
    This will be moved to the Applications forum and is CLOSE for the moment.
    Moved from Pre-Release/Beta and open again.
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,402

    Default Re: Unable to find /usr/share/file/magic

    Quote Originally Posted by nibiran View Post
    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...

    Regards
    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
    Code:
    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 .....
    And indeed:
    Code:
    henk@boven:~> ls -l /usr/share/misc/
    totaal 4432
    -rw-r--r-- 1 root root  719112 19 nov 15:57 magic
    -rw-r--r-- 1 root root 2785040 19 nov 15:57 magic.mgc
    -rw-r--r-- 1 root root 1029548 27 sep 17:29 termcap
    henk@boven:~>
    Henk van Velden

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •