GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       xfmtype - xfm file type tester


       xfmtype -m magic_file [-f] filename ...


       The  xfmtype  program  reads  a magic configuration file and tests each
       file  in  its  command  line  to  tell  its  type  according   to   the
       configuration file.

       The  format  of  the configuration file is the similar to magic(5) with
       the differences described in 0


       -f file
           Consider the following argument as a file, even if it  begins  with

       -m file
           Specifies  a  configuration  file.  You  can  specify more than one
           configuration file with several -m flags.  They  are  read  in  the
           order  in  which  they  are  found. Configuration files do not have
           effect until they are encountered in the command line. So, files to
           test in the command line before that switch will not be affected by


       If no rule matches a specified field or the type cannot  be  determined
       because  of  other  reasons,  one  of  the  following built in types is

       inode/x-unreadable The file could not be read.

       inode/x-empty File size is zero.

       text/plain The file looks like ACSII.
       xfm will look into xfm_mime.type(5) for more guessing.

       application/octet-stream Other regular file.
       xfm will look into xfm_mime.type(5) for more guessing.

       inode/directory A directory.

       inode/chardevice A character device.

       inode/blockdevice A block device.

       inode/pipe A names pipe (fifo).

       inode/socket A socket.

       inode/default None of the above.


       Bad configuration lines cause undefined behavior. In general  they  are
       silently ignored, but that is not guaranteed.
       There are no warning or error message except for the regular expression
       There should be a syntax checking mode.
       All of the above apply to xfm too.


       xfm(1), xfm_magic(5), file(1), magic(5).


       Copyright (c) 1995 CNM-US
       Copyright (c) 1995 Juan D. Martin


       Juan D. Martin (
       (but modified heavily by Bernhard R. Link)

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.110 seconds. Last modified: November 04 2018 12:49:43.