Description

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

b

Scroll backward

Nspace OR 50space

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

gg

Go to first line

G

Go to last line