file.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-file" role="wrap">
  8. <?dbhtml filename="file.html"?>
  9. <sect1info condition="script">
  10. <productname>file</productname>
  11. <productnumber>&file-version;</productnumber>
  12. <address>&file-url;</address>
  13. </sect1info>
  14. <title>File-&file-version;</title>
  15. <indexterm zone="ch-system-file">
  16. <primary sortas="a-File">File</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>File 软件包包含用于确定给定文件类型的工具。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&file-ch6-sbu;</seg>
  26. <seg>&file-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 File</title>
  32. <para>准备安装 File:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  34. <para>编译该软件包:</para>
  35. <screen><userinput remap="make">make</userinput></screen>
  36. <para>运行以下命令以测试编译结果:</para>
  37. <screen><userinput remap="test">make check</userinput></screen>
  38. <para>安装该软件包:</para>
  39. <screen><userinput remap="install">make install</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-file" role="content">
  42. <title>File 的内容</title>
  43. <segmentedlist>
  44. <segtitle>安装的程序</segtitle>
  45. <segtitle>安装的库</segtitle>
  46. <seglistitem>
  47. <seg>file</seg>
  48. <seg>libmagic.so</seg>
  49. </seglistitem>
  50. </segmentedlist>
  51. <variablelist>
  52. <bridgehead renderas="sect3">简要描述</bridgehead>
  53. <?dbfo list-presentation="list"?>
  54. <?dbhtml list-presentation="table"?>
  55. <varlistentry id="file">
  56. <term><command>file</command></term>
  57. <listitem>
  58. <para>通过进行文件系统、魔数和语言等测试,
  59. 尝试对每个给定的文件进行分类</para>
  60. <indexterm zone="ch-system-file file">
  61. <primary sortas="b-file">file</primary>
  62. </indexterm>
  63. </listitem>
  64. </varlistentry>
  65. <varlistentry id="libmagic">
  66. <term><filename class="libraryfile">libmagic</filename></term>
  67. <listitem>
  68. <para>包含 <command>file</command> 程序使用的魔数识别子程序</para>
  69. <indexterm zone="ch-system-file libmagic">
  70. <primary sortas="c-libmagic">libmagic</primary>
  71. </indexterm>
  72. </listitem>
  73. </varlistentry>
  74. </variablelist>
  75. </sect2>
  76. </sect1>