mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 13:07:50 +00:00
673b0d84ba
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
65 lines
1.8 KiB
XML
65 lines
1.8 KiB
XML
<?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>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; 0.1 SBU
|
|
&diskspace; 6.3 MB</screen>
|
|
|
|
<para>File installation depends on: Bash, Binutils, Coreutils, Diffutils,
|
|
GCC, Glibc, Grep, Make, Sed, Zlib.</para>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<para>Now install it:</para>
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<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>
|