less.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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">
  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. <para>The Less package contains a text file viewer.</para>
  11. <screen>&buildtime; 0.1 SBU
  12. &diskspace; 3.4 MB</screen>
  13. <para>Less installation depends on: Bash, Binutils, Coreutils, Diffutils,
  14. GCC, Glibc, Grep, Make, Ncurses, Sed.</para>
  15. <sect2>
  16. <title>Installation of Less</title>
  17. <para>Prepare Less for compilation:</para>
  18. <screen><userinput>./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc</userinput></screen>
  19. <para>The meaning of the configure option:</para>
  20. <itemizedlist>
  21. <listitem><para><userinput>--sysconfdir=/etc</userinput>: This option tells the
  22. programs created by the package to look in <filename>/etc</filename> for their
  23. configuration files.</para></listitem>
  24. </itemizedlist>
  25. <para>Compile the package:</para>
  26. <screen><userinput>make</userinput></screen>
  27. <para>Now install it:</para>
  28. <screen><userinput>make install</userinput></screen>
  29. </sect2>
  30. <sect2 id="contents-less"><title>Contents of Less</title>
  31. <para><emphasis>Installed programs</emphasis>: less, lessecho and lesskey</para>
  32. </sect2>
  33. <sect2><title>Short descriptions</title>
  34. <indexterm zone="ch-system-less less"><primary sortas="b-less">less</primary></indexterm>
  35. <para id="less"><command>less</command> is a file viewer or pager. It displays the
  36. contents of the given file, letting you scroll around, find strings, and jump
  37. to marks.</para>
  38. <indexterm zone="ch-system-less lessecho"><primary sortas="b-lessecho">lessecho</primary></indexterm>
  39. <para id="lessecho"><command>lessecho</command> is needed to expand meta-characters,
  40. such as * and ?, in filenames on Unix systems.</para>
  41. <indexterm zone="ch-system-less lesskey"><primary sortas="b-lesskey">lesskey</primary></indexterm>
  42. <para id="lesskey"><command>lesskey</command> is used to specify the key bindings
  43. for less.</para>
  44. </sect2>
  45. </sect1>