Linux Terminal Command: more
The more command is an essential tool in File Manipulation & Viewing. In this tutorial, we will explore what more does, look at everyday examples, and cover advanced options to supercharge your command-line workflow.
Concept & Explanation
The more command is an older paging utility. While it allows forward scrolling through files, it lacks backward navigation and advanced search tools found in less.
Common Options & Syntax
more [options] [arguments]
Here are the most common flags used with more:
- Simple Usage: Basic default commands.
- Detailed View: Shows diagnostic information.
- Advanced Actions: Can chain parameters for scripting.
1. Interactive Example (Simple)
Here is how most people run the command:
# Example
more file.txt
What it does: Opens ‘file.txt’ for reading, showing progress percentage at the bottom.
2. Power-User Example (Advanced)
For scripting and advanced diagnostics, use this configuration:
# Advanced
more -d -c info.log
What it does: Prompts users with help messages for navigation (-d) and clears the screen before printing each page (-c).
⚙️ Warning & Common Pitfalls
[!WARNING] Because
morelacks robust backward navigation, it is generally recommended to uselessinstead.
🔗 Related Commands
Here are some related posts on cli_tty1 you might want to check out:
- less : File pager for interactive viewing.