mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 19:53:04 +00:00
Update cheatsheets
This commit is contained in:
41
less
Normal file
41
less
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# less
|
||||
|
||||
> Open a file for interactive reading, allowing scrolling and search.
|
||||
> More information: <https://greenwoodsoftware.com/less/>.
|
||||
|
||||
- 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}}`
|
||||
|
||||
- Follow the output of the currently opened file:
|
||||
|
||||
`F`
|
||||
|
||||
- Open the current file in an editor:
|
||||
|
||||
`v`
|
||||
|
||||
- Exit:
|
||||
|
||||
`q`
|
||||
Reference in New Issue
Block a user