less.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <itemizedlist>
  29. <listitem><para><userinput>--sysconfdir=/etc</userinput>: This option tells the
  30. programs created by the package to look in <filename>/etc</filename> for their
  31. configuration files.</para></listitem>
  32. </itemizedlist>
  33. <para>Compile the package:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>Now install it:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. </sect2>
  38. <sect2 id="contents-less"><title>Contents of Less</title>
  39. <para><emphasis>Installed programs</emphasis>: less, lessecho and lesskey</para>
  40. </sect2>
  41. <sect2><title>Short descriptions</title>
  42. <indexterm zone="ch-system-less less"><primary sortas="b-less">less</primary></indexterm>
  43. <para id="less"><command>less</command> is a file viewer or pager. It displays the
  44. contents of the given file, letting you scroll around, find strings, and jump
  45. to marks.</para>
  46. <indexterm zone="ch-system-less lessecho"><primary sortas="b-lessecho">lessecho</primary></indexterm>
  47. <para id="lessecho"><command>lessecho</command> is needed to expand meta-characters,
  48. such as * and ?, in filenames on Unix systems.</para>
  49. <indexterm zone="ch-system-less lesskey"><primary sortas="b-lesskey">lesskey</primary></indexterm>
  50. <para id="lesskey"><command>lesskey</command> is used to specify the key bindings
  51. for less.</para>
  52. </sect2>
  53. </sect1>