tldr/pages/common/less.md

36 lines
520 B
Markdown
Raw Normal View History

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