Open, search and navigate large text files interactively from the terminal with a tiny, powerful pager. 01.04.2026 | reading time: 2 min Open and navigate any text file quickly from the terminal with `less`; it shows file content without loading everything into memory and offers fast searches, jumps and follow modes for logs. Try it: build and view a sample log Create a test file and view it: ```bash printf "%03d Line number\n" {1..120} > example.log less example.log ``` When `less` starts you see the top of the file; press Space to go forward, `b` to go back, `/pattern` to search, `n` and `N` to repeat the search and `G` to jump to the end; the bottom status shows "\"(END)\"" when you reach file end. Commands and switches that make life easier Try `less -N` to show line numbers, `less -S` to chop long lines instead of wrapping, and `less -R` to render raw color escape sequences; run `less +F file` to follow appended data like `tail -f`; set `export LESS='-R -N'` to make those options default; press `v` in `less` to open the current file in your $EDITOR for quick edits. When to pick less and when not to Use `less` for reading, searching and paging any text output or file; combine it with pipelines like `dmesg | less` or `grep pattern file | less` to inspect results; for tiny interactive edits use `vim` and for continuous log monitoring prefer `tail -f` or `less +F` depending on whether you need paging controls. Where to go next Master navigation keys and a few options and `less` will repay you with speed and precision while troubleshooting or reading logs; deepen your Linux skills and consider formal certification such as CompTIA Linux+ or LPIC-1, and use bitsandbytes.academy for intensive exam preparation. Join Bits & Bytes Academy First class LINUX exam preparation. utilities filesystem troubleshooting scripting