source: chapter06/less.xml@ 9c9d585

Last change on this file since 9c9d585 was 1fe35e1, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter06/*.xml) RELAX NG validation fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4356 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
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>
9<?dbhtml filename="less.html"?>
10
11<indexterm zone="ch-system-less"><primary sortas="a-Less">Less</primary></indexterm>
12
13<section role="package"><info><title/></info>
14<para>The Less package contains a text file viewer.</para>
15
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>
21
22<segmentedlist>
23<segtitle>Less installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
26</segmentedlist>
27</section>
28
29<section role="installation">
30<info><title>Installation of Less</title></info>
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
38<variablelist>
39<varlistentry>
40<term><parameter>--sysconfdir=/etc</parameter></term>
41<listitem><para>This option tells the programs created by the package to look in
42<filename class="directory">/etc</filename> for their configuration files.</para></listitem>
43</varlistentry>
44</variablelist>
45
46<para>Compile the package:</para>
47
48<screen><userinput>make</userinput></screen>
49
50<para>Now install it:</para>
51
52<screen><userinput>make install</userinput></screen>
53
54</section>
55
56<section xml:id="contents-less" role="content"><info><title>Contents of Less</title></info>
57
58<segmentedlist>
59<segtitle>Installed programs</segtitle>
60<seglistitem><seg>less, lessecho and lesskey</seg></seglistitem>
61</segmentedlist>
62
63<variablelist><title>Short descriptions</title>
64
65<varlistentry xml:id="less">
66<term><command>less</command></term>
67<listitem>
68<indexterm zone="ch-system-less less"><primary sortas="b-less">less</primary></indexterm>
69<para>is a file viewer or pager. It displays the contents of the given file, letting you
70scroll around, find strings, and jump to marks.</para>
71</listitem>
72</varlistentry>
73
74<varlistentry xml:id="lessecho">
75<term><command>lessecho</command></term>
76<listitem>
77<indexterm zone="ch-system-less lessecho"><primary sortas="b-lessecho">lessecho</primary></indexterm>
78<para>is needed to expand meta-characters, such as * and ?, in filenames on Unix systems.</para>
79</listitem>
80</varlistentry>
81
82<varlistentry xml:id="lesskey">
83<term><command>lesskey</command></term>
84<listitem>
85<indexterm zone="ch-system-less lesskey"><primary sortas="b-lesskey">lesskey</primary></indexterm>
86<para>is used to specify the key bindings for <command>less</command>.</para>
87</listitem>
88</varlistentry>
89</variablelist>
90
91</section>
92
93</section>
Note: See TracBrowser for help on using the repository browser.