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