less flags & options
-N, --LINE-NUMBERS
Show line numbers in the left margin.
less -N logfile.txt
-S, --chop-long-lines
Chop long lines instead of wrapping them.
less -S wide-output.csv
-R, --RAW-CONTROL-CHARS
Display raw ANSI color escape sequences properly.
git diff | less -R
ls --color=always | less -R
-F, --quit-if-one-screen
Quit immediately if the entire file fits on one screen.
less -F short-file.txt
-X, --no-init
Prevent clearing the screen when less exits.
less -XF logfile.txt
+G
Start at the end of the file instead of the beginning.
less +G /var/log/syslog
+/pattern
Start at the first occurrence of a search pattern.
less +/ERROR app.log
less +/"failed to connect" server.log