[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1fe35e1] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[1fe35e1] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xml:id="ch-system-less" xreflabel="Less" role="wrap">
|
---|
| 8 | <info><title>Less-&less-version;</title></info>
|
---|
[673b0d8] | 9 | <?dbhtml filename="less.html"?>
|
---|
| 10 |
|
---|
| 11 | <indexterm zone="ch-system-less"><primary sortas="a-Less">Less</primary></indexterm>
|
---|
[6370fa6] | 12 |
|
---|
[1fe35e1] | 13 | <section role="package"><info><title/></info>
|
---|
[5888299] | 14 | <para>The Less package contains a text file viewer.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>3.4 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Less installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 25 | GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
[1fe35e1] | 27 | </section>
|
---|
[3554fa3a] | 28 |
|
---|
[1fe35e1] | 29 | <section role="installation">
|
---|
| 30 | <info><title>Installation of Less</title></info>
|
---|
[73aedd1d] | 31 |
|
---|
| 32 | <para>Prepare Less for compilation:</para>
|
---|
| 33 |
|
---|
| 34 | <screen><userinput>./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <para>The meaning of the configure option:</para>
|
---|
| 37 |
|
---|
[df8334f] | 38 | <variablelist>
|
---|
| 39 | <varlistentry>
|
---|
[ef57e3b] | 40 | <term><parameter>--sysconfdir=/etc</parameter></term>
|
---|
[df8334f] | 41 | <listitem><para>This option tells the programs created by the package to look in
|
---|
[ef57e3b] | 42 | <filename class="directory">/etc</filename> for their configuration files.</para></listitem>
|
---|
[df8334f] | 43 | </varlistentry>
|
---|
| 44 | </variablelist>
|
---|
[73aedd1d] | 45 |
|
---|
| 46 | <para>Compile the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
[673b0d8] | 50 | <para>Now install it:</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <screen><userinput>make install</userinput></screen>
|
---|
| 53 |
|
---|
[1fe35e1] | 54 | </section>
|
---|
[6370fa6] | 55 |
|
---|
[1fe35e1] | 56 | <section xml:id="contents-less" role="content"><info><title>Contents of Less</title></info>
|
---|
[5888299] | 57 |
|
---|
[c6cb3aa] | 58 | <segmentedlist>
|
---|
| 59 | <segtitle>Installed programs</segtitle>
|
---|
| 60 | <seglistitem><seg>less, lessecho and lesskey</seg></seglistitem>
|
---|
| 61 | </segmentedlist>
|
---|
[673b0d8] | 62 |
|
---|
[c6cb3aa] | 63 | <variablelist><title>Short descriptions</title>
|
---|
[6370fa6] | 64 |
|
---|
[1fe35e1] | 65 | <varlistentry xml:id="less">
|
---|
[b8a819f] | 66 | <term><command>less</command></term>
|
---|
[c6cb3aa] | 67 | <listitem>
|
---|
[673b0d8] | 68 | <indexterm zone="ch-system-less less"><primary sortas="b-less">less</primary></indexterm>
|
---|
[c6cb3aa] | 69 | <para>is a file viewer or pager. It displays the contents of the given file, letting you
|
---|
| 70 | scroll around, find strings, and jump to marks.</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </varlistentry>
|
---|
| 73 |
|
---|
[1fe35e1] | 74 | <varlistentry xml:id="lessecho">
|
---|
[b8a819f] | 75 | <term><command>lessecho</command></term>
|
---|
[c6cb3aa] | 76 | <listitem>
|
---|
[673b0d8] | 77 | <indexterm zone="ch-system-less lessecho"><primary sortas="b-lessecho">lessecho</primary></indexterm>
|
---|
[c6cb3aa] | 78 | <para>is needed to expand meta-characters, such as * and ?, in filenames on Unix systems.</para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </varlistentry>
|
---|
[673b0d8] | 81 |
|
---|
[1fe35e1] | 82 | <varlistentry xml:id="lesskey">
|
---|
[b8a819f] | 83 | <term><command>lesskey</command></term>
|
---|
[c6cb3aa] | 84 | <listitem>
|
---|
[673b0d8] | 85 | <indexterm zone="ch-system-less lesskey"><primary sortas="b-lesskey">lesskey</primary></indexterm>
|
---|
[ef57e3b] | 86 | <para>is used to specify the key bindings for <command>less</command>.</para>
|
---|
[c6cb3aa] | 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
| 89 | </variablelist>
|
---|
[673b0d8] | 90 |
|
---|
[1fe35e1] | 91 | </section>
|
---|
[673b0d8] | 92 |
|
---|
[1fe35e1] | 93 | </section>
|
---|