The less command

display the contents of a file in a terminal 4 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Options in the examples

-N or --LINE-NUMBERS
Causes a line number to be displayed at the beginning of each line in the display.

Examples

less /etc/passwd
less /var/log/syslog
less +G /var/log/syslog

Open at the end of file

less -N /etc/passwd

Show line numbers

Lessons that use less