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

37 lines
579 B
Markdown
Raw Normal View History

2013-12-08 19:56:16 +11:00
# less
> Open a file for interactive reading, allowing scrolling and search.
> More information: <https://greenwoodsoftware.com/less/>.
2013-12-08 19:56:16 +11:00
- Open a file:
2013-12-08 19:56:16 +11:00
`less {{source_file}}`
2013-12-08 19:56:16 +11:00
- Page down / up:
2013-12-08 19:56:16 +11:00
`<Space> (down), b (up)`
2013-12-08 19:56:16 +11:00
- Go to end / start of file:
2013-12-08 19:56:16 +11:00
`G (end), g (start)`
2013-12-08 19:56:16 +11:00
- Forward search for a string (press `n`/`N` to go to next/previous match):
2013-12-08 19:56:16 +11:00
`/{{something}}`
2013-12-08 19:56:16 +11:00
- Backward search for a string (press `n`/`N` to go to next/previous match):
`?{{something}}`
2017-12-06 10:55:50 -08:00
- Follow the output of the currently opened file:
2017-12-06 10:55:50 -08:00
`F`
2016-12-21 13:19:14 -08:00
- Open the current file in an editor:
2016-12-20 12:47:49 -08:00
`v`
- Exit:
2013-12-08 19:56:16 +11:00
`q`