tldr/pages/common/less.md

26 lines
343 B
Markdown
Raw Normal View History

2013-12-08 08:56:16 +00:00
# less
> Opens a file for reading.
> Allows movement and search.
> Doesn't read the entire file (suitable for logs).
2013-12-08 08:56:16 +00:00
- Open a file:
2013-12-08 08:56:16 +00:00
`less {{source_file}}`
2013-12-08 08:56:16 +00:00
- Page up / down:
2013-12-08 08:56:16 +00:00
`d (next), D (previous)`
- Go to start / end of file:
2013-12-08 08:56:16 +00:00
`g (start), G (end)`
- Search for a string:
2013-12-08 08:56:16 +00:00
`/{{something}} then n (next), N (previous)`
2013-12-08 08:56:16 +00:00
- Exit:
2013-12-08 08:56:16 +00:00
`q`