less.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-less" xreflabel="Less" role="wrap">
  7. <title>Less-&less-version;</title>
  8. <?dbhtml filename="less.html"?>
  9. <indexterm zone="ch-system-less"><primary sortas="a-Less">Less</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Less package contains a text file viewer.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>3.4 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Less installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  20. GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Less</title>
  25. <para>Prepare Less for compilation:</para>
  26. <screen><userinput>./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc</userinput></screen>
  27. <para>The meaning of the configure option:</para>
  28. <variablelist>
  29. <varlistentry>
  30. <term><parameter>--sysconfdir=/etc</parameter></term>
  31. <listitem><para>This option tells the programs created by the package to look in
  32. <filename class="directory">/etc</filename> for their configuration files.</para></listitem>
  33. </varlistentry>
  34. </variablelist>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make</userinput></screen>
  37. <para>Now install it:</para>
  38. <screen><userinput>make install</userinput></screen>
  39. </sect2>
  40. <sect2 id="contents-less" role="content"><title>Contents of Less</title>
  41. <segmentedlist>
  42. <segtitle>Installed programs</segtitle>
  43. <seglistitem><seg>less, lessecho and lesskey</seg></seglistitem>
  44. </segmentedlist>
  45. <variablelist><title>Short descriptions</title>
  46. <varlistentry id="less">
  47. <term><command>less</command></term>
  48. <listitem>
  49. <indexterm zone="ch-system-less less"><primary sortas="b-less">less</primary></indexterm>
  50. <para>is a file viewer or pager. It displays the contents of the given file, letting you
  51. scroll around, find strings, and jump to marks.</para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry id="lessecho">
  55. <term><command>lessecho</command></term>
  56. <listitem>
  57. <indexterm zone="ch-system-less lessecho"><primary sortas="b-lessecho">lessecho</primary></indexterm>
  58. <para>is needed to expand meta-characters, such as * and ?, in filenames on Unix systems.</para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry id="lesskey">
  62. <term><command>lesskey</command></term>
  63. <listitem>
  64. <indexterm zone="ch-system-less lesskey"><primary sortas="b-lesskey">lesskey</primary></indexterm>
  65. <para>is used to specify the key bindings for <command>less</command>.</para>
  66. </listitem>
  67. </varlistentry>
  68. </variablelist>
  69. </sect2>
  70. </sect1>