[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-file" xreflabel="File" role="wrap">
|
---|
[673b0d8] | 7 | <title>File-&file-version;</title>
|
---|
| 8 | <?dbhtml filename="file.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-file"><primary sortas="a-File">File</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The File package contains a utility for determining the type of files.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.1 SBU</seg><seg>6.3 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>File installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | GCC, Glibc, Grep, Make, Sed, Zlib</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of File</title>
|
---|
| 30 |
|
---|
| 31 | <para>Prepare File for compilation:</para>
|
---|
| 32 |
|
---|
| 33 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <para>Compile the package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[ef13657] | 39 | <para>Install the package:</para>
|
---|
[73aedd1d] | 40 |
|
---|
| 41 | <screen><userinput>make install</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | </sect2>
|
---|
[6370fa6] | 44 |
|
---|
[5888299] | 45 |
|
---|
[c6cb3aa] | 46 | <sect2 id="contents-file" role="content"><title>Contents of File</title>
|
---|
[673b0d8] | 47 |
|
---|
[c6cb3aa] | 48 | <segmentedlist>
|
---|
| 49 | <segtitle>Installed programs</segtitle>
|
---|
| 50 | <segtitle>Installed library</segtitle>
|
---|
| 51 | <seglistitem><seg>file</seg><seg>libmagic.[a,so]</seg></seglistitem>
|
---|
| 52 | </segmentedlist>
|
---|
[6370fa6] | 53 |
|
---|
[c6cb3aa] | 54 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 55 |
|
---|
[b8a819f] | 56 | <varlistentry id="file">
|
---|
| 57 | <term><command>file</command></term>
|
---|
[c6cb3aa] | 58 | <listitem>
|
---|
[673b0d8] | 59 | <indexterm zone="ch-system-file file"><primary sortas="b-file">file</primary></indexterm>
|
---|
[ef13657] | 60 | <para>tries to classify each given file. It does this by performing
|
---|
| 61 | several tests: file system tests, magic number tests, and language
|
---|
| 62 | tests. The first test that succeeds determines the result.</para>
|
---|
[c6cb3aa] | 63 | </listitem>
|
---|
| 64 | </varlistentry>
|
---|
[673b0d8] | 65 |
|
---|
[b8a819f] | 66 | <varlistentry id="libmagic">
|
---|
[bb55064] | 67 | <term><filename class="libraryfile">libmagic</filename></term>
|
---|
[c6cb3aa] | 68 | <listitem>
|
---|
[673b0d8] | 69 | <indexterm zone="ch-system-file libmagic"><primary sortas="c-libmagic">libmagic</primary></indexterm>
|
---|
[ef13657] | 70 | <para>contains routines for magic number recognition, used by the
|
---|
| 71 | <command>file</command> program.</para>
|
---|
[c6cb3aa] | 72 | </listitem>
|
---|
| 73 | </varlistentry>
|
---|
| 74 | </variablelist>
|
---|
[673b0d8] | 75 |
|
---|
| 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | </sect1>
|
---|
[ef13657] | 79 |
|
---|