Skip to main content

Open a file for interactive reading, allowing scrolling and search (in forward direction only).

# To view the contents of a file:
more <file>

# To page down:
<space>

# To search for a string (press `n` to go to the next match, and `p` to go to previous match):
/something

# To exit:
:q

# ---

# To move forward one line, press the `RETURN` key. To move backwards one line, press `k`
:RETURN
:k

# To open a file at line number 999:
more +999 <file>

# To open a file at the first occurrence of a search string pass the +:
more +/^word <file>

# To search for a string starting with the word:
/^word

# To show the file that is being displayed and its current position:
:f