less

Read a big file page by page

What it does

less opens a file in a viewer: space goes a page forward, b back, the arrow keys move line by line, g and G jump to the start and the end. Quit with q.

Search with /, the text and Enter; n jumps to the next match. less does not read the whole file up front, so it opens even gigabyte logs quickly.

Syntax

less <file>

Examples

Related commands

Practise · All commands