tldr/pages/common/less.md
Will Moore 9dec2c1e2f Remove -R Option
Removed:

> - Enable output of ANSI colors:
> `git diff --color | less -R`
2017-02-25 09:23:51 +05:30

464 B

less

Open a file for interactive reading, allowing scrolling and search.

  • Open a file:

less {{source_file}}

  • Page down / up:

<Space> (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

  • Exit:

q