how to use more command with its examples

  • About more: file perusal filter for crt viewing
  • It comes from “util-linux-ng-2.17.2” package.
  • Configuration Files:
  • Path: /bin/more

Examples:

1. To browse the file

$ more file.txt

2. To display the prompt for continue

$ more -d file.txt

3. To stop pausing when ^L appears

$ more -l file.txt

4. To specify “more” to count logically

$ more -f file.txt

5. To not to scroll, instead clear screen and then display

$ more -p file.txt

6. To not to scroll, instead print screen from top and then display

$ more -c file.txt

7. To sqeeze multiple blank lines into one

$ more -s file.txt

8. To suppress underlining

$ more -u file.txt

9. To search for a string and then display

$ more +/sa file.txt

10. To start displaying file from specified line number

$ more +10 file.txt

Related Commands: vi, less

Leave a Reply

Your email address will not be published. Required fields are marked *