source: chapter06/less.xml@ c2913ea

Last change on this file since c2913ea was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[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">
[6a0e6f3]8<title>Less-&less-version;</title>
[673b0d8]9<?dbhtml filename="less.html"?>
10
11<indexterm zone="ch-system-less"><primary sortas="a-Less">Less</primary></indexterm>
[6370fa6]12
[6a0e6f3]13<section role="package"><title/>
[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,
25GCC, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
26</segmentedlist>
[1fe35e1]27</section>
[3554fa3a]28
[1fe35e1]29<section role="installation">
[6a0e6f3]30<title>Installation of Less</title>
[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
[6a0e6f3]56<section xml:id="contents-less" role="content"><title>Contents of Less</title>
[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
70scroll 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>
Note: See TracBrowser for help on using the repository browser.