From 2624ea6a30f5c9afdc2bc12c9118f080d0bff6d4 Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Tue, 13 Feb 2024 02:31:15 -0300 Subject: [PATCH] more: split util-linux and POSIX implementations (#12171) * more: add page --------- Co-authored-by: Juri Dispan --- pages/common/more.md | 15 ++++++++------- pages/linux/more.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 pages/linux/more.md diff --git a/pages/common/more.md b/pages/common/more.md index 43349a656..dfddf3a57 100644 --- a/pages/common/more.md +++ b/pages/common/more.md @@ -1,13 +1,18 @@ # more -> Open a file for interactive reading, allowing scrolling and search. -> More information: . +> Interactively display a file, allowing scrolling and searching. +> See also: `less`. +> More information: . - Open a file: `more {{path/to/file}}` -- Open a file displaying from a specific line: +- Search case-[i]nsensitively when pressing "/": + +`more -i {{path/to/file}}` + +- Display a specific line: `more +{{line_number}} {{path/to/file}}` @@ -26,7 +31,3 @@ - Display help about interactive commands: `h` - -- Display help: - -`more --help` diff --git a/pages/linux/more.md b/pages/linux/more.md new file mode 100644 index 000000000..7e34a118d --- /dev/null +++ b/pages/linux/more.md @@ -0,0 +1,29 @@ +# more + +> Interactively display a file, allowing scrolling and searching. +> See also: `less`. +> More information: . + +- Open a file: + +`more {{path/to/file}}` + +- Display a specific line: + +`more +{{line_number}} {{path/to/file}}` + +- Go to the next page: + +`` + +- Search for a string (press `n` to go to the next match): + +`/{{something}}` + +- Exit: + +`q` + +- Display help about interactive commands: + +`h`