Provided by: manpages-zh_1.5.2-1_all bug

NAME

       file -

       file [ -bcnsvzL ] [ -f  ] [ -m  ] file ...

       3.27 file .  File .  :.   .

         text  (  ASCII  ASCII  ),  executable (UNIX ), data (data ).  coretar
       /usr/share/magic , preserve these keywords .  ``text''  .   Berkeley  -
       ``shell commands text''``shell script''.

        stat(2) .  ,.   ( (FIFOs) ) sys/stat.h .

       .   ()  a.out  ,include  a.out.h  exec.h  .   ''  ,  UNIX  ,  .   .   .
       /usr/share/magic .

        ASCII , file .  ()( names.h) .br troff(1) , struct  C.   .   (  tar(1)
       )`ascii text'`data'.

       -b       ().

       -c      .  -m .

       -f        ().   ; , ``-''.

       -m list .  .

       -n      . .  .

       -v      .

       -z      .

       -L      (), ls(1) like-named .

       -s      , file stat(2) .  .  -s file .  .  file stat(2) 0.

       /usr/share/magic -

ENVIRONMENT

        MAGIC .

       magic(4) - .
       strings(1), od(1), hexdump(1) - textfile.

       System V FILE, .  System V FILE.magic, ().

       System V , . ,
       >10  string    language impress    (imPRESS data)

       >10  string    language\ impress   (imPRESS data)
       , .
       0    string         \begindata     Andrew Toolkit document

       0    string         \\begindata    Andrew Toolkit document

       SunOS releases 3.2System V file(1) ,.Sunfile. `&' ,,
       >16  long&0x7fffffff     >0        not stripped

MAGIC DIRECTORY

       USENET,.  Christos Zoulas ().  .

       ..  file ( /usr/share/magic.orig) .

       $ file file.c file /dev/hda
       file.c:   C program text
       file:     ELF 32-bit LSB executable, Intel 80386, version 1,
       dynamically linked, not stripped
       /dev/hda: block special

       $ file -s /dev/hda{,1,2,3,4,5,6,7,8,9,10}
       /dev/hda:   x86 boot sector
       /dev/hda1:  Linux/i386 ext2 filesystem
       /dev/hda2:  x86 boot sector
       /dev/hda3:  x86 boot sector, extended partition table
       /dev/hda4:  Linux/i386 ext2 filesystem
       /dev/hda5:  Linux/i386 swap file
       /dev/hda6:  Linux/i386 swap file
       /dev/hda7:  Linux/i386 swap file
       /dev/hda8:  Linux/i386 swap file
       /dev/hda9:  empty
       /dev/hda10: empty

       There has been a file 6(19751)UNIX.  System V :.  , .

       System V ,Ian Darwin.

       John Gilmore,.  Geoff Collyer.  .

       Ian  F.  Darwin,  UUCP  {utzoo | ihnp4}!darwin!ian,  ian@sq.com, : P.O.
       Box 603, Station F, Toronto, Ontario, CANADA M4Y 2L8.

       Rob McMahon, cudcv@warwick.ac.uk, 1989, `&'  `x&y != 0'`x&y op z'.

       Guy Harris, guy@netapp.com, 1993,:

              ``old-style'' `&' , 1) Rob McMahon, 2) file SunOS  ``new-style''
              `&'  `x&y op z', 3) Rob;

              `>';

              ``beshort'', ``leshort'', file .

       Ian DarwinChristos Zoulas(christos@astron.com), 1990-1999.

         (c)  Ian  F.  Darwin,  Toronto, Canada, 1986, 1987, 1988, 1989, 1990,
       1991, 1992, 1993.

       SunDigital, Lotus , CaliforniaXMIT,.

       ,.

        :

       1.  .

       2. . , .

       3. ., .

       4. .

       (getopt, strtok) Henry Spencer.

       (strtol, strchr);.

        tar.h is_tar.c tar John Gilmore,.

       MagdirglopMagic .?  ( ndbm(3) , ASCII ).Version 7 file,System V .

       File ASCII .

        ASCII (),.

       ``else''.

       .  ASCII TAB , .

       .  , troff(1) .  .

        FORTRAN .  FORTRAN .  .

        ascmagic Magic.  `*'.

        ..

       "".  ( ``From '' 5) (``Newsgroups:'' "Return-Path:").  .

       file.

       .

       FTP ftp.astron.com /pub/file/file-X.YY.tar.gz

[]

        <email>

[]

       2001/07/15

linuxman:

       http://cmpp.linuxforum.net

                          Copyright but distributable                  FILE(1)