You can pass the number of lines (N) you want to display per screenful in Linux more command. By default, more command displays the number of lines per screenful based on your terminal configuration.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
## display N numbers of lines per screenful in Linux more command ## create a long file with 200 lines > myfile; i=1; while [ $i -le 200 ]; \ do echo "$i" >> myfile; ((i++)); done ## specify the no. of lines per screenful tput lines ## returns 46 in my terminal more myfile ## by default returns 46 lines (my terminal size) more -10 myfile ## returns 10 lines per screenful more -30 myfile ## can be any postive integer rm myfile |