2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-system-file" xreflabel="File">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>File-&file-version;</title>
|
|
|
|
<?dbhtml filename="file.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-file"><primary sortas="a-File">File</primary></indexterm>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<para>The File package contains a utility for determining the type of files.</para>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<screen>&buildtime; 0.1 SBU
|
|
|
|
&diskspace; 6.3 MB</screen>
|
|
|
|
|
|
|
|
<para>File installation depends on: Bash, Binutils, Coreutils, Diffutils,
|
|
|
|
GCC, Glibc, Grep, Make, Sed, Zlib.</para>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of File</title>
|
|
|
|
|
|
|
|
<para>Prepare File for compilation:</para>
|
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/usr</userinput></screen>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Now install it:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<sect2 id="contents-file"><title>Contents of File</title>
|
|
|
|
|
|
|
|
<para><emphasis>Installed program</emphasis>: file</para>
|
|
|
|
|
|
|
|
<para><emphasis>Installed library</emphasis>: libmagic.[a,so]</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<sect2><title>Short descriptions</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-file file"><primary sortas="b-file">file</primary></indexterm>
|
|
|
|
<para id="file"><command>file</command> tries to classify each given file. It does
|
|
|
|
this by performing several tests: file system tests, magic number tests, and
|
|
|
|
language tests. The first test that succeeds determines the result.</para>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-file libmagic"><primary sortas="c-libmagic">libmagic</primary></indexterm>
|
|
|
|
<para id="libmagic"><command>libmagic</command> contains routines for magic number
|
|
|
|
recognition, used by the file program.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</sect1>
|