source: BOOK/final-system/common/less.xml@ 7cffba4

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7cffba4 was 94e6142, checked in by Jim Gifford <clfs@…>, 19 years ago

r1167@server (orig r1165): chris | 2006-02-11 08:13:02 -0800
Added -v to commands in the rest of the book

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[3f8be484]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
[e0e40d3]38<screen os="b"><userinput>./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
[3f8be484]39
[e0e40d3]40 <variablelist os="c">
[3f8be484]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
[e0e40d3]53 <para os="d">Compile the package:</para>
[3f8be484]54
[e0e40d3]55<screen os="e"><userinput>make</userinput></screen>
[3f8be484]56
[5da8aa0]57 <para os="f">This package does not come with a test suite.</para>
[3f8be484]58
[5da8aa0]59 <para os="g">Install the package:</para>
[3f8be484]60
[5da8aa0]61<screen os="h"><userinput>make install</userinput></screen>
[0ba77ba2]62
[5da8aa0]63 <para os="i">Move less to /bin:</para>
64
[94e6142]65<screen os="j"><userinput>mv -v /usr/bin/less /bin</userinput></screen>
[0ba77ba2]66
[3f8be484]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>
Note: See TracBrowser for help on using the repository browser.