Less -Q or –QUIET or –SILENT option causes totally “quiet” operation: the terminal bell is never rung. If the terminal has a “visual bell”, it is used in all cases where the terminal bell would have been rung.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
## create a long file with 200 lines > myfile; i=1; while [ $i -le 200 ]; \ do echo "$i" >> myfile; ((i++)); done ## default less myfile ## in the interactive mode, type a (rings bell) ## hit space bar to scroll to the end of file ## rings bell once end is reached ## less -q or --quiet or --silent option less -q myfile ## in the interactive mode, type a (rings bell) ## hit space bar to scroll to the end of file ## does not rings bell once end is reached ## less -Q or --QUIET or --SILENT option less -Q myfile ## in the interactive mode, type a (no bell) ## hit space bar to scroll to the end of file ## does not rings bell once end is reached rm myfile |