How to navigate in more?

In the more command, you can navigate through the text file using the following keys:

  1. Space: Move forward one screen.
  2. Enter: Move forward one line.
  3. b: Move backward one screen.
  4. f: Move forward one screen (similar to Space).
  5. /pattern: Search for a specific text pattern. After typing the pattern, press Enter to find the next occurrence.
  6. n: Repeat the last search in the same direction.
  7. N: Repeat the last search in the opposite direction.
  8. g: Go to the beginning of the file.
  9. g: Jump to a specific line number (replace <line number> with the desired line).
  10. q: Quit the more viewer.

These navigation techniques will help you efficiently browse through the contents of a file.

0 Comments

no data
Be the first to share your comment!