less
Program: less
Shows a file page by page, to scroll and search.
Usage
less [FILE]
Description
Show FILE, or standard input, one screen at a time. Keys: q quits, space or f goes one screen on, b one screen back, j or Enter one line on, k one line back, g goes to the start, G to the end, /TEXT searches forward, ?TEXT backward, n finds the next match, N the one before.
Options in the simulator
7 more options of the real program, not in the simulator yet
Examples
less Documents/recipes.txt less logs/app.log | head -n 3
09:12:04 INFO worker 1 started
09:12:04 INFO worker 2 started
09:13:40 INFO request served in 91ms less Documents/notes.txt
Book train tickets
Return library books
Pay the power bill
Back up the laptop
Fix the bike light
(END) Where you learn it
Lessons
- Looking into files: cat, less, head and tail Terminal start
- Reading logs without drowning Linux Basics, Module 1: Survival basics