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