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`