$ less
View text one screen at a time
DOCUMENTEDViewing filesUbuntu 24.04 LTS baseline
Synopsis
less [options] [file ...]
What it does
- `less` is a pager that lets you move through text without requiring the whole file to fit on screen.
- Press `q` to quit the pager.
Examples
View a file
less /var/log/syslogRead command output
journalctl | lessImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.