6.26. Less-418

The Less package contains a text file viewer.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/less

6.26.1. Installation of Less

Prepare Less for compilation:

./configure --prefix=/usr --sysconfdir=/etc \
    --with-secure

The meaning of the configure options:

--sysconfdir=/etc

This option tells the programs created by the package to look in /etc for the configuration files.

--with-secure

This optional switch will disable the "!" shell command, "|" pipe command, ":e" examine command, "v" editing command, "-o" log files, "-k" use of lesskey files, "-t" use of tags, metacharacters in filenames, and filename completion. This switch has the same effect as the LESSSECURE=1 environment variable, except that it is hard coded.

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

6.26.2. Contents of Less

Installed programs: less, lessecho, and lesskey

Short Descriptions

less

A file viewer or pager; it displays the contents of the given file, letting the user scroll, find strings, and jump to marks

lessecho

Needed to expand meta-characters, such as * and ?, in filenames on Unix systems

lesskey

Used to specify the key bindings for less