diff options
Diffstat (limited to 'chapter06/file.xml')
-rw-r--r-- | chapter06/file.xml | 50 |
1 files changed, 39 insertions, 11 deletions
diff --git a/chapter06/file.xml b/chapter06/file.xml index d7232b401..4b4bb8cd0 100644 --- a/chapter06/file.xml +++ b/chapter06/file.xml @@ -1,16 +1,23 @@ +<?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; +]> <sect1 id="ch-system-file" xreflabel="File"> -<title>Installing File-&file-version;</title> -<?dbhtml filename="file.html" dir="chapter06"?> +<title>File-&file-version;</title> +<?dbhtml filename="file.html"?> + +<indexterm zone="ch-system-file"><primary sortas="a-File">File</primary></indexterm> <para>The File package contains a utility for determining the type of files.</para> -<screen>&buildtime; &file-time; -&diskspace; &file-compsize;</screen> +<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> -&aa-file-down; -&aa-file-dep; -<sect2><title> </title><para> </para></sect2> <sect2> <title>Installation of File</title> @@ -23,14 +30,35 @@ <screen><userinput>make</userinput></screen> -<para>And install it:</para> +<para>Now install it:</para> <screen><userinput>make install</userinput></screen> </sect2> -&aa-file-shortdesc; -&aa-file-desc; -</sect1> +<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> + +<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> |