Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
0 answers
62 views

How do I see current status of runtime options of less utility?

Less takes runtime options from LESS environment variable + system-wide lesskey file + $HOME/.less file + command line arguments + runtime commands invoked by user. Use case After toggling some ...
maoizm's user avatar
  • 1,124
3 votes
2 answers
2k views

Mouse scrolling less pager output in tmux session

I use export LESS=-R to enable scrolling through less output using mouse scroll. It doesn’t work in tmux. For vim, the solution was to add set mouse=a. What is the equivalent option for less assuming ...
Ilias Karim's user avatar
1 vote
4 answers
205 views

Telling `less` where to break pages

Is there some way to tell less where to break pages? I was hoping that ^L (form feed / page break) would do it, but found it doesn't. I tried the following: The first page. It is three lines long. ^...
Magnus's user avatar
  • 4,526
0 votes
1 answer
306 views

How to use `less` as default pager for `--help`?

I use --help option a lot. It's annoying how it jumps to the end with help. It can be done with |less option. I want |less to be my default option. Can I use less as default paging for --help? I use ...
tyler durden's user avatar
2 votes
1 answer
120 views

Dump to terminal or file content of "less" pager utility

It is usual to use less utility as pager (with -r option). But less uses special terminal buffers, so it preserve previous output to terminal and when I leave less I see previous content. That is ...
gavenkoa's user avatar
  • 2,084
10 votes
3 answers
3k views

Is there an automatically scrolling, time-delayed Unix pager command?

I'd like to view output of big commands slowed down, like a slideshow with e.g. automatic, 500ms delay between each scroll. What is the simplest way to achieve this?
Blazej Wieliczko's user avatar
3 votes
1 answer
2k views

Preventing the pager less from exiting when scrolling beyond the end of file

I like less and use it as my default pager in Linux. However, there are times that I am scrolling down through a large document quickly and less exits when I reach the end of the document before I ...
Amelio Vazquez-Reina's user avatar
9 votes
3 answers
2k views

Let less work like cat, if only one screen full of text

On my Debian machine here, less always opens the alternate screen to show stuff. This is annoying, if there are only 2 or 3 lines to be displayed. I'd like less to: work as pager, if there is more ...
Boldewyn's user avatar
  • 4,428
11 votes
3 answers
7k views

Change less (pager) default options

I'm using Ubuntu 10.04. My default pager(set using update-alternatives, not $PAGER) is less. The problem is, when I use ri(Ruby documentation tool) with the '-f ansi' mode, less shows the escape ...
imgx64's user avatar
  • 508
4 votes
2 answers
8k views

Use `less` pager on file with non-standard encoding

I often use the less pager to view logfiles. Usually I use less -F to follow the progress of the log à la tail. However, some logfiles use national characters in a non-standard encoding (Latin-1, ...
sleske's user avatar
  • 23.4k