less
is a terminal pager program for Linux, MacOS (Unixes) and even Windows. It’s used to viewing (but not changing) the contents of a text file one screen at a time.
You can try in you terminal:
less /etc/passwd
– if you use Unix-like system.
Note: press q
to quit.
Most Linux users know about navigation with arrows and space. But it can do more!
Page down / up:
(down), b (up)
Go to end / start of file:
G (end), g (start)
Forward search for a string (press n/N to go to next/previous match):
/{{something}}
Backward search for a string (press n/N to go to next/previous match):
?{{something}}
Open the current file in an editor:
v