View files with the less pager

Scroll, search, and even tail logs inside big text files without loading them into an editor.

LinuxFilestextLow risk
Run less bigfile.log, then press / to search, Space to page down, and q to quit.

01Command

Command
$ less +F /var/log/syslog

02What it does

less opens instantly no matter how big the file is because it reads only the visible part. Key moves: /word searches forward, n finds the next match, g/G jump to top/bottom, -N toggles line numbers. less +F follows a growing log like tail -f, and Ctrl+C stops following so you can scroll and search.

03Risk

RiskLow risk
!Warning: less is read-only — edits need an editor. Also, some output (like git diff) may open less automatically and trap newcomers: press q to get your prompt back.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • less(1) — Linux manual page
    man7.org · community · 2026-09-17
    Evidence: less pages through a file with scroll, search (/), and navigation; +F follows appended data and -N shows line numbers.

Last verified: 2026-09-18 · Category: Files & Folders

06Related solutions