Update for FILE v3.39.
This commit is contained in:
parent
5438009281
commit
f61bf05438
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103642
@ -1,5 +1,5 @@
|
|||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\" $Id: file.man,v 1.39 2001/04/27 22:48:33 christos Exp $
|
.\" $Id: file.man,v 1.42 2002/07/03 18:26:37 christos Exp $
|
||||||
.Dd April 4, 2001
|
.Dd April 4, 2001
|
||||||
.Dt FILE 1 "Copyright but distributable"
|
.Dt FILE 1 "Copyright but distributable"
|
||||||
.Os
|
.Os
|
||||||
@ -16,7 +16,7 @@
|
|||||||
.Fl C
|
.Fl C
|
||||||
.Op Fl m Ar magicfile
|
.Op Fl m Ar magicfile
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
This manual page documents version 3.37 of the
|
This manual page documents version 3.39 of the
|
||||||
.Nm
|
.Nm
|
||||||
utility which tests each argument in an attempt to classify it.
|
utility which tests each argument in an attempt to classify it.
|
||||||
There are three sets of tests, performed in this order:
|
There are three sets of tests, performed in this order:
|
||||||
@ -316,12 +316,15 @@ keep the old magic file around for comparison purposes
|
|||||||
.Pa /usr/share/misc/magic.orig ) .
|
.Pa /usr/share/misc/magic.orig ) .
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
$ file file.c file /dev/hda
|
$ file file.c file /dev/{wd0a,hda}
|
||||||
file.c: C program text
|
file.c: C program text
|
||||||
file: ELF 32-bit LSB executable, Intel 80386, version 1,
|
file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
|
||||||
dynamically linked, not stripped
|
dynamically linked (uses shared libs), stripped
|
||||||
/dev/hda: block special
|
/dev/wd0a: block special (0/0)
|
||||||
|
/dev/hda: block special (3/0)
|
||||||
|
$ file -s /dev/wd0{b,d}
|
||||||
|
/dev/wd0b: data
|
||||||
|
/dev/wd0d: x86 boot sector
|
||||||
$ file -s /dev/hda{,1,2,3,4,5,6,7,8,9,10}
|
$ file -s /dev/hda{,1,2,3,4,5,6,7,8,9,10}
|
||||||
/dev/hda: x86 boot sector
|
/dev/hda: x86 boot sector
|
||||||
/dev/hda1: Linux/i386 ext2 filesystem
|
/dev/hda1: Linux/i386 ext2 filesystem
|
||||||
@ -335,19 +338,20 @@ $ file -s /dev/hda{,1,2,3,4,5,6,7,8,9,10}
|
|||||||
/dev/hda9: empty
|
/dev/hda9: empty
|
||||||
/dev/hda10: empty
|
/dev/hda10: empty
|
||||||
|
|
||||||
$ file -i file.c file /dev/hda
|
$ file -i file.c file /dev/{wd0a,hda}
|
||||||
file.c: text/x-c
|
file.c: text/x-c
|
||||||
file: application/x-executable, dynamically linked (uses shared libs),
|
file: application/x-executable, dynamically linked (uses shared libs),
|
||||||
not stripped
|
not stripped
|
||||||
/dev/hda: application/x-not-regular-file
|
/dev/hda: application/x-not-regular-file
|
||||||
|
/dev/wd0a: application/x-not-regular-file
|
||||||
.Ed
|
.Ed
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
There has been a
|
There has been a
|
||||||
.Nm
|
.Nm
|
||||||
command in every
|
command in every
|
||||||
.Ux
|
.Ux
|
||||||
since at least Research Version 6
|
since at least Research Version 4
|
||||||
(man page dated January 16, 1975).
|
(man page dated November, 1973).
|
||||||
The System V version introduced one significant major change:
|
The System V version introduced one significant major change:
|
||||||
the external list of magic number types.
|
the external list of magic number types.
|
||||||
This slowed the program down slightly but made it a lot more flexible.
|
This slowed the program down slightly but made it a lot more flexible.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
This manual page documents the format of the magic file as
|
This manual page documents the format of the magic file as
|
||||||
used by the
|
used by the
|
||||||
.Nm
|
.Nm
|
||||||
command, version 3.37.
|
command, version 3.39.
|
||||||
The
|
The
|
||||||
.Nm file
|
.Nm file
|
||||||
command identifies the type of a file using,
|
command identifies the type of a file using,
|
||||||
@ -259,4 +259,4 @@ indirect offsets.
|
|||||||
.\" the changes I posted to the S5R2 version.
|
.\" the changes I posted to the S5R2 version.
|
||||||
.\"
|
.\"
|
||||||
.\" Modified for Ian Darwin's version of the file command.
|
.\" Modified for Ian Darwin's version of the file command.
|
||||||
.\" @(#)$Id: magic.man,v 1.17 2001/08/07 15:38:42 christos Exp $
|
.\" @(#)$Id: magic.man,v 1.19 2002/07/03 18:26:38 christos Exp $
|
||||||
|
Loading…
Reference in New Issue
Block a user