[673b0d8] | 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 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-system-less" xreflabel="Less">
|
---|
[673b0d8] | 7 | <title>Less-&less-version;</title>
|
---|
| 8 | <?dbhtml filename="less.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-less"><primary sortas="a-Less">Less</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[5888299] | 12 | <para>The Less package contains a text file viewer.</para>
|
---|
| 13 |
|
---|
[673b0d8] | 14 | <screen>&buildtime; 0.1 SBU
|
---|
| 15 | &diskspace; 3.4 MB</screen>
|
---|
| 16 |
|
---|
| 17 | <para>Less installation depends on: Bash, Binutils, Coreutils, Diffutils,
|
---|
| 18 | GCC, Glibc, Grep, Make, Ncurses, Sed.</para>
|
---|
[3554fa3a] | 19 |
|
---|
[73aedd1d] | 20 |
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Installation of Less</title>
|
---|
| 24 |
|
---|
| 25 | <para>Prepare Less for compilation:</para>
|
---|
| 26 |
|
---|
| 27 | <screen><userinput>./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc</userinput></screen>
|
---|
| 28 |
|
---|
| 29 | <para>The meaning of the configure option:</para>
|
---|
| 30 |
|
---|
| 31 | <itemizedlist>
|
---|
| 32 | <listitem><para><userinput>--sysconfdir=/etc</userinput>: This option tells the
|
---|
| 33 | programs created by the package to look in <filename>/etc</filename> for their
|
---|
| 34 | configuration files.</para></listitem>
|
---|
| 35 | </itemizedlist>
|
---|
| 36 |
|
---|
| 37 | <para>Compile the package:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>make</userinput></screen>
|
---|
| 40 |
|
---|
[673b0d8] | 41 | <para>Now install it:</para>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <screen><userinput>make install</userinput></screen>
|
---|
| 44 |
|
---|
| 45 | </sect2>
|
---|
[6370fa6] | 46 |
|
---|
[5888299] | 47 |
|
---|
[673b0d8] | 48 | <sect2 id="contents-less"><title>Contents of Less</title>
|
---|
| 49 |
|
---|
| 50 | <para><emphasis>Installed programs</emphasis>: less, lessecho and lesskey</para>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | <sect2><title>Short descriptions</title>
|
---|
[6370fa6] | 56 |
|
---|
[673b0d8] | 57 | <indexterm zone="ch-system-less less"><primary sortas="b-less">less</primary></indexterm>
|
---|
| 58 | <para id="less"><command>less</command> is a file viewer or pager. It displays the
|
---|
| 59 | contents of the given file, letting you scroll around, find strings, and jump
|
---|
| 60 | to marks.</para>
|
---|
| 61 |
|
---|
| 62 | <indexterm zone="ch-system-less lessecho"><primary sortas="b-lessecho">lessecho</primary></indexterm>
|
---|
| 63 | <para id="lessecho"><command>lessecho</command> is needed to expand meta-characters,
|
---|
| 64 | such as * and ?, in filenames on Unix systems.</para>
|
---|
| 65 |
|
---|
| 66 | <indexterm zone="ch-system-less lesskey"><primary sortas="b-lesskey">lesskey</primary></indexterm>
|
---|
| 67 | <para id="lesskey"><command>lesskey</command> is used to specify the key bindings
|
---|
| 68 | for less.</para>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | </sect1>
|
---|