1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/less.md
2016-10-12 16:58:04 +01:00

31 lines
463 B
Markdown

# less
> Open a file for interactive reading, allowing scrolling and search.
- Open a file:
`less {{source_file}}`
- Page up / down:
`<Space> (next), b (previous)`
- Go to start / end of file:
`g (start), G (end)`
- Forward search for a string:
`/{{something}} then n (next), N (previous)`
- Backward search for a string:
`?{{something}} then n (next), N (previous)`
- Enable output of ANSI colors:
`git diff --color | less -R`
- Exit:
`q`