less is a tool to view large files on the CLI. It does not have to read the entire input of a file like common text editors. So even logfiles with the size of a GB can be inspected with it. The commands are based on the tools more and vi.

Table 1. Movement
Command Description

space OR d

Scroll forward


Scroll backward

Nspace OR 50space

Scroll forward N lines, while N is a preceded decimal number


Go to first line


Go to last line