less

Displays text files, one screen at a time

less [options] [file-list]

The less utility displays text files, one screen at a time and is similar to more but includes many enhancements. After displaying a screen of text, less displays a prompt and waits for you to enter a command. You can skip forward and backward in the file, invoke an editor, search for a pattern, or perform a number of other tasks. This utility takes its input from files you specify on the command line or from standard input.

Arguments

The file-list is the list of files you want to view. If there is no file-list, less reads from standard input.

Options

This section describes only some of the more commonly used options. Refer to the less man page for a complete list of ...

Get A Practical Guide to Red Hat® Linux® 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.