[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-less" role="wrap">
|
---|
| 9 | <?dbhtml filename="less.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Less-&less-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-less">
|
---|
| 14 | <primary sortas="a-Less">Less</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Less package contains a text file viewer.</para>
|
---|
| 21 |
|
---|
| 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&dependencies;</segtitle>
|
---|
| 24 | <seglistitem>
|
---|
| 25 |
|
---|
| 26 | <seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 27 | GCC, Glibc, Grep, Make, Ncurses, and Sed</seg>
|
---|
| 28 | </seglistitem>
|
---|
| 29 | </segmentedlist>
|
---|
| 30 |
|
---|
| 31 | </sect2>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="installation">
|
---|
| 34 | <title>Installation of Less</title>
|
---|
| 35 |
|
---|
| 36 | <para os="a">Prepare Less for compilation:</para>
|
---|
| 37 |
|
---|
[e6423a01] | 38 | <screen os="b"><userinput>./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
|
---|
[bf8c11f] | 39 |
|
---|
[e6423a01] | 40 | <variablelist os="c">
|
---|
[bf8c11f] | 41 | <title>The meaning of the configure option:</title>
|
---|
| 42 |
|
---|
| 43 | <varlistentry>
|
---|
| 44 | <term><parameter>--sysconfdir=/etc</parameter></term>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>This option tells the programs created by the package to look
|
---|
| 47 | in <filename class="directory">/etc</filename> for the configuration
|
---|
| 48 | files.</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | </varlistentry>
|
---|
| 51 | </variablelist>
|
---|
| 52 |
|
---|
[e6423a01] | 53 | <para os="d">Compile the package:</para>
|
---|
[bf8c11f] | 54 |
|
---|
[e6423a01] | 55 | <screen os="e"><userinput>make</userinput></screen>
|
---|
[bf8c11f] | 56 |
|
---|
[bea9517] | 57 | <para os="f">This package does not come with a test suite.</para>
|
---|
[bf8c11f] | 58 |
|
---|
[bea9517] | 59 | <para os="g">Install the package:</para>
|
---|
[bf8c11f] | 60 |
|
---|
[bea9517] | 61 | <screen os="h"><userinput>make install</userinput></screen>
|
---|
[3ab1db1] | 62 |
|
---|
[bea9517] | 63 | <para os="i">Move less to /bin:</para>
|
---|
| 64 |
|
---|
| 65 | <screen os="j"><userinput>mv /usr/bin/less /bin</userinput></screen>
|
---|
[3ab1db1] | 66 |
|
---|
[bf8c11f] | 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2 id="contents-less" role="content">
|
---|
| 70 | <title>Contents of Less</title>
|
---|
| 71 |
|
---|
| 72 | <segmentedlist>
|
---|
| 73 | <segtitle>Installed programs</segtitle>
|
---|
| 74 |
|
---|
| 75 | <seglistitem>
|
---|
| 76 | <seg>less, lessecho, and lesskey</seg>
|
---|
| 77 | </seglistitem>
|
---|
| 78 | </segmentedlist>
|
---|
| 79 |
|
---|
| 80 | <variablelist>
|
---|
| 81 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 82 | <?dbfo list-presentation="list"?>
|
---|
| 83 | <?dbhtml list-presentation="table"?>
|
---|
| 84 |
|
---|
| 85 | <varlistentry id="less">
|
---|
| 86 | <term><command>less</command></term>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>A file viewer or pager; it displays the contents of the given
|
---|
| 89 | file, letting the user scroll, find strings, and jump to marks</para>
|
---|
| 90 | <indexterm zone="ch-system-less less">
|
---|
| 91 | <primary sortas="b-less">less</primary>
|
---|
| 92 | </indexterm>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="lessecho">
|
---|
| 97 | <term><command>lessecho</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Needed to expand meta-characters, such as <emphasis>*</emphasis>
|
---|
| 100 | and <emphasis>?</emphasis>, in filenames on Unix systems</para>
|
---|
| 101 | <indexterm zone="ch-system-less lessecho">
|
---|
| 102 | <primary sortas="b-lessecho">lessecho</primary>
|
---|
| 103 | </indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | <varlistentry id="lesskey">
|
---|
| 108 | <term><command>lesskey</command></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>Used to specify the key bindings for
|
---|
| 111 | <command>less</command></para>
|
---|
| 112 | <indexterm zone="ch-system-less lesskey">
|
---|
| 113 | <primary sortas="b-lesskey">lesskey</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | </variablelist>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | </sect1>
|
---|