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.


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


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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.