less.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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-less" role="wrap">
  8. <?dbhtml filename="less.html"?>
  9. <sect1info condition="script">
  10. <productname>less</productname>
  11. <productnumber>&less-version;</productnumber>
  12. <address>&less-url;</address>
  13. </sect1info>
  14. <title>Less-&less-version;</title>
  15. <indexterm zone="ch-system-less">
  16. <primary sortas="a-Less">Less</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Less 软件包包含一个文本文件查看器。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&less-ch6-sbu;</seg>
  26. <seg>&less-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Less</title>
  32. <para>准备安装 Less:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
  34. <variablelist>
  35. <title>配置选项的含义:</title>
  36. <varlistentry>
  37. <term><parameter>--sysconfdir=/etc</parameter></term>
  38. <listitem>
  39. <para>该选项告诉该软件包创建的程序在
  40. <filename class="directory">/etc</filename> 查找配置文件</para>
  41. </listitem>
  42. </varlistentry>
  43. </variablelist>
  44. <para>编译该软件包:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>该软件包不包含测试套件。</para>
  47. <para>安装该软件包:</para>
  48. <screen><userinput remap="install">make install</userinput></screen>
  49. </sect2>
  50. <sect2 id="contents-less" role="content">
  51. <title>Less 的内容</title>
  52. <segmentedlist>
  53. <segtitle>安装的程序</segtitle>
  54. <seglistitem>
  55. <seg>less, lessecho, 以及 lesskey</seg>
  56. </seglistitem>
  57. </segmentedlist>
  58. <variablelist>
  59. <bridgehead renderas="sect3">简要描述</bridgehead>
  60. <?dbfo list-presentation="list"?>
  61. <?dbhtml list-presentation="table"?>
  62. <varlistentry id="less">
  63. <term><command>less</command></term>
  64. <listitem>
  65. <para>一个文件查看器或分页器;它显示给定文件的内容,
  66. 使得用户可以进行滚动、查找字符串,或跳到标记</para>
  67. <indexterm zone="ch-system-less less">
  68. <primary sortas="b-less">less</primary>
  69. </indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="lessecho">
  73. <term><command>lessecho</command></term>
  74. <listitem>
  75. <para>用于展开元字符,例如 Unix 系统上文件名中的
  76. <emphasis>*</emphasis> 和 <emphasis>?</emphasis></para>
  77. <indexterm zone="ch-system-less lessecho">
  78. <primary sortas="b-lessecho">lessecho</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="lesskey">
  83. <term><command>lesskey</command></term>
  84. <listitem>
  85. <para>用于指定 <command>less</command> 的按键绑定</para>
  86. <indexterm zone="ch-system-less lesskey">
  87. <primary sortas="b-lesskey">lesskey</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. </variablelist>
  92. </sect2>
  93. </sect1>