Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1b/file.1b
          +++ new/usr/src/man/man1b/file.1b
↓ open down ↓ 5 lines elided ↑ open up ↑
   6    6  .TH FILE 1B "Sep 14, 1992"
   7    7  .SH NAME
   8    8  file \- determine the type of a file by examining its contents
   9    9  .SH SYNOPSIS
  10   10  .LP
  11   11  .nf
  12   12  \fB/usr/ucb/file\fR [\fB-f\fR \fIffile\fR] [\fB-cL\fR] [\fB-m\fR \fImfile\fR] \fIfilename\fR...
  13   13  .fi
  14   14  
  15   15  .SH DESCRIPTION
  16      -.sp
  17   16  .LP
  18   17  \fBfile\fR performs a series of tests on each  \fIfilename\fR in an attempt to
  19   18  determine what it contains. If the contents of a file appear to be  \fBASCII\fR
  20   19  text, \fBfile\fR examines the first 512 bytes and tries to guess its language.
  21   20  .sp
  22   21  .LP
  23   22  \fBfile\fR uses the file \fB/etc/magic\fR to identify files that have some sort
  24   23  of \fImagic number\fR, that is, any file containing a numeric or string
  25   24  constant that indicates its type.
  26   25  .SH OPTIONS
  27      -.sp
  28   26  .ne 2
  29   27  .na
  30   28  \fB\fB-c\fR\fR
  31   29  .ad
  32   30  .RS 12n
  33   31  Check for format errors in the magic number file. For reasons of efficiency,
  34   32  this validation is not normally carried out. No file type-checking is done
  35   33  under \fB-c\fR.
  36   34  .RE
  37   35  
↓ open down ↓ 48 lines elided ↑ open up ↑
  86   84  .nf
  87   85  example% \fB/usr/ucb/file  *\fR
  88   86  
  89   87  code:           mc68020 demand paged executable
  90   88  code.c:         c program text
  91   89  counts:         ascii text
  92   90  doc:            roff,nroff, or eqn input text
  93   91  empty.file:     empty
  94   92  libz:           archive random library
  95   93  memos:          directory
  96      -project:        symboliclink to /usr/project
       94 +project:        symbolic link to /usr/project
  97   95  script:         executable shell script
  98   96  titles:         ascii text
  99   97  s5.stuff:       cpio archive
 100   98  
 101   99  
 102  100  example%
 103  101  .fi
 104  102  .in -2
 105  103  .sp
 106  104  
 107  105  .SH ENVIRONMENT VARIABLES
 108      -.sp
 109  106  .LP
 110  107  The environment variables \fBLC_CTYPE\fR, \fBLANG\fR, and \fBLC_default\fR
 111  108  control the character classification throughout \fBfile\fR. On entry to
 112  109  \fBfile\fR, these environment variables are checked in the following order:
 113  110  \fBLC_CTYPE\fR, \fBLANG\fR, and \fBLC_default\fR. When a valid value is found,
 114  111  remaining environment variables for character classification are ignored. For
 115  112  example, a new setting for \fBLANG\fR does not override the current valid
 116  113  character classification rules of \fBLC_CTYPE\fR. When none of the values is
 117  114  valid, the shell character classification defaults to the   POSIX.1 "C"
 118  115  locale.
 119  116  .SH FILES
 120      -.sp
 121  117  .LP
 122  118  \fB/etc/magic\fR
 123  119  .SH SEE ALSO
 124      -.sp
 125  120  .LP
 126  121  \fBmagic\fR(4), \fBattributes\fR(5)
 127  122  .SH BUGS
 128      -.sp
 129  123  .LP
 130  124  \fBfile\fR often makes mistakes.  In particular, it often suggests that command
 131  125  files are C programs.
 132  126  .sp
 133  127  .LP
 134  128  \fBfile\fR does not recognize Pascal or  LISP.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX