commands
less — browse text interactively
Pager with forward and backward navigation, search with /pattern, and q to quit. -N shows line numbers. Requires a terminal for interactive use; missing locally. Example assumes a fresh text-streams lab fixture.
Formal Syntax & Structure
linux syntaxlinux
less [OPTION]... [FILE]...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -N | option | Show line numbers |
| FILE | operand | Text file |
Return Value
interactive session and exit status
Displays text through an interactive pager rather than producing a fixed report. Normal quitting does not establish that the learner read every line; inspect opening/display errors and consult version-specific status behavior.
Working Example
Example Snippetlinux
less -N events.txt