less.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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. <title>Less-&less-version;</title>
  10. <indexterm zone="ch-system-less">
  11. <primary sortas="a-Less">Less</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Less package contains a text file viewer.</para>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem>
  20. <seg>&less-ch6-sbu;</seg>
  21. <seg>&less-ch6-du;</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Less</title>
  27. <para>Prepare Less for compilation:</para>
  28. <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
  29. <variablelist>
  30. <title>The meaning of the configure options:</title>
  31. <varlistentry>
  32. <term><parameter>--sysconfdir=/etc</parameter></term>
  33. <listitem>
  34. <para>This option tells the programs created by the package to look
  35. in <filename class="directory">/etc</filename> for the configuration
  36. files.</para>
  37. </listitem>
  38. </varlistentry>
  39. </variablelist>
  40. <para>Compile the package:</para>
  41. <screen><userinput>make</userinput></screen>
  42. <para>This package does not come with a test suite.</para>
  43. <para>Install the package:</para>
  44. <screen><userinput>make install</userinput></screen>
  45. </sect2>
  46. <sect2 id="contents-less" role="content">
  47. <title>Contents of Less</title>
  48. <segmentedlist>
  49. <segtitle>Installed programs</segtitle>
  50. <seglistitem>
  51. <seg>less, lessecho, and lesskey</seg>
  52. </seglistitem>
  53. </segmentedlist>
  54. <variablelist>
  55. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  56. <?dbfo list-presentation="list"?>
  57. <?dbhtml list-presentation="table"?>
  58. <varlistentry id="less">
  59. <term><command>less</command></term>
  60. <listitem>
  61. <para>A file viewer or pager; it displays the contents of the given
  62. file, letting the user scroll, find strings, and jump to marks</para>
  63. <indexterm zone="ch-system-less less">
  64. <primary sortas="b-less">less</primary>
  65. </indexterm>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry id="lessecho">
  69. <term><command>lessecho</command></term>
  70. <listitem>
  71. <para>Needed to expand meta-characters, such as <emphasis>*</emphasis>
  72. and <emphasis>?</emphasis>, in filenames on Unix systems</para>
  73. <indexterm zone="ch-system-less lessecho">
  74. <primary sortas="b-lessecho">lessecho</primary>
  75. </indexterm>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="lesskey">
  79. <term><command>lesskey</command></term>
  80. <listitem>
  81. <para>Used to specify the key bindings for <command>less</command></para>
  82. <indexterm zone="ch-system-less lesskey">
  83. <primary sortas="b-lesskey">lesskey</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. </variablelist>
  88. </sect2>
  89. </sect1>