tldr/pages/common/more.md

34 lines
509 B
Markdown
Raw Normal View History

2014-05-12 13:24:05 +01:00
# more
> Interactively display a file, allowing scrolling and searching.
> See also: `less`.
> More information: <https://manned.org/more.1p>.
2014-05-12 13:24:05 +01:00
- Open a file:
2014-05-12 13:24:05 +01:00
2021-05-06 13:27:15 +01:00
`more {{path/to/file}}`
2014-05-12 13:24:05 +01:00
- Search case-[i]nsensitively when pressing "/":
`more -i {{path/to/file}}`
- Display a specific line:
2021-05-06 13:27:15 +01:00
`more +{{line_number}} {{path/to/file}}`
- Go to the next page:
2014-05-12 13:24:05 +01:00
`<Space>`
2014-05-12 13:24:05 +01:00
- Search for a string (press `n` to go to the next match):
2014-05-12 13:24:05 +01:00
`/{{something}}`
2014-05-12 13:24:05 +01:00
- Exit:
2014-05-12 13:24:05 +01:00
`q`
2021-05-06 13:27:15 +01:00
- Display help about interactive commands:
`h`