Forrest logo
tool overview
On this page you find all important commands for the CLI tool more. If the command you are looking for is missing please ask our AI.

more

The more command line tool is a pager for viewing text files in a terminal window. It allows users to read through the contents of a file one page at a time, making it easier to navigate and review large files.

When running the more command, the text file will open in the terminal, displaying the first page of the file. Users can use the Enter key to read through the file line by line or press the Spacebar to view the next page. The q key can be used to quit the pager and return to the command prompt.

more provides some additional functionality beyond simple paging. It allows users to search for specific text within the file using the forward slash (/) followed by the search term. Pressing n will move to the next occurrence of the search term, while pressing Shift+n will move to the previous occurrence.

Another useful feature of more is the ability to scroll both forwards and backwards within the file. Users can press the b key to scroll up one page or the d key to scroll down one page.

By default, more displays line numbers on the left side of the terminal window, showing the current line number and the total number of lines in the file. However, line numbers can be turned off by using the -x flag when running the more command.

The more command is available on most Unix-like systems, including Linux and macOS. It is a simple and efficient tool for viewing and navigating large text files in a terminal environment.

List of commands for more:

tool overview