Less -m or –long-prompt option causes less to prompt verbosely (like more), with the percent into the file. By default, less prompts with a colon. Less -M or –LONG-PROMPT option causes less to prompt even more verbosely than more.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
## create a long file with 200 lines > myfile; i=1; while [ $i -le 200 ]; \ do echo "$i" >> myfile; ((i++)); done ## default less myfile ## hit space bar to scroll ## only prompt (:) is returned in the bottom ## less -m or --long-prompt option less -m myfile ## hit space bar to scroll ## %of file scrolled is returned in the bottom ## less -M or --LONG-PROMPT option less -M myfile ## hit space bar to scroll ## more details are returned in the bottom rm myfile |