Read Large Files Comfortably with less

Page through huge files instantly, with search and line numbers built in.

macOSFilesLow risk
Run less -N bigfile.txt and navigate with the arrow keys, spacebar, and / for search.

01Command

Command
$ less -N ~/Documents/bigfile.txt

02What it does

less never loads the whole file, so a 2 GB log opens as fast as a small one — cat would flood your screen and an editor would grind. Press / then type a word to search (n for next match), G to jump to the end, and q to quit. -N adds line numbers for referencing; -S stops long lines from wrapping. less +F file acts like tail -f for following a growing log.

03Risk

RiskLow risk
!Warning: less is read-only, which is exactly why it is safe for inspecting unknown files.

04Undo

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

05Sources

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

06Related solutions