Questions tagged [pager]
92 questions
90
votes
8 answers
Colors in Man Pages
When I look at a man page in my 'console' (not an xterm) I see some coloration, but I don't get this in my xterm's (e.g. konsole) is there any way I can enable this? hopefully a fairly simple solution?
xenoterracide
- 57,918
- 74
- 184
- 250
85
votes
5 answers
How to make Vim display colors as indicated by color codes?
In short, I'm in an effort to replace less with vim (vimpager). I have settings for scripts to spit out colors (and bold and everything nice) whenever they can. less understands the color codes and displays them nicely. How can I make vim parse the…
phunehehe
- 20,030
- 27
- 99
- 151
66
votes
3 answers
Does "less" have a feature like "tail --follow=name" ("-F")
The command less can be used to replace tail in
tail -f file
to provide features like handling binary output and navigating the scrollback:
less +F file
The + prefix means "pretend I type that after startup", and the key F starts following.
But…
Volker Siegel
- 16,983
- 5
- 52
- 79
53
votes
3 answers
git diff displays colors incorrectly
In order to get coloured output from all git commands, I set the following:
git config --global color.ui true
However, this produces an output like this for git diff, git log
whereas commands like git status display fine
Why is it not recognizing…
user32465
50
votes
8 answers
Looking at logs from bottom upwards
Is there a linux command or some way to look at logs from bottom up rather than from top towards bottom. I know about tail -n , but is there something that I can actually scroll and go from bottom up?
c0mrade
- 934
- 2
- 9
- 13
45
votes
3 answers
How do some tools (e.g. nano , less) manage to leave no content in terminals after exit?
Whenever I use a pager like less or an editor like nano in the shell (my shell is GNU bash), I see a behaviour I cannot explain completely and which differs to the behaviour I can observe with other tools like cat or ls. I would like to ask how this…
humanityANDpeace
- 13,722
- 13
- 61
- 107
32
votes
4 answers
Case insensitive search in man pages
Is there a way to search man pages case-insensitively? Using the '/' search feature matches exact case.
FazJaxton
- 836
- 8
- 9
25
votes
2 answers
What is a pager?
I saw "pager" in several places:
less is a terminal pager program on Unix
option -P for man Specify which output pager to use.
What is a pager? How is it related to and different from a terminal? Thanks.
Tim
- 98,580
- 191
- 570
- 977
23
votes
7 answers
How to scroll large datafile while keeping header
Suppose I have some large datafile, which overflow the screen in both vertical and horizontal direction. How can I browse this file, while the header-lines stay on the screen?
For the moment, I am using less -S, so that I can nicely scroll my file…
Bernhard
- 11,992
- 4
- 59
- 69
20
votes
3 answers
Git pager is less, but what is causing the output coloring?
less itself isn't capable of doing syntax highlighting, according to this thread.
However, git diff nicely shows colored output in less, its default pager. When I redirect the output of git diff into a file, no color escape sequences are visible.…
Sebastian
- 8,677
- 4
- 39
- 49
19
votes
1 answer
Is there any way of changing most keybindings to something more familiar?
most pager is nice, but its default keybindings are unlike any other.
As I don't want to learn a whole new set of keybindings for my pager (no matter how fancy and wonderful it is), is there any way of making most hotkeys feel more like vi, less and…
kirushik
- 471
- 2
- 8
18
votes
5 answers
pager program like less, able to repeat top N lines
Is there any way to make less program repeat first line (or first 2 lines) on every displayed page?
Is there any other pager program which can do this?
This would be a killer-app for database table browsing, think mysql or psql or gqlplus...
See the…
filiprem
- 409
- 4
- 12
10
votes
4 answers
Shift-Space in less
In modern web browsers and other software with text content, Space scrolls down more or less a screenful. ShiftSpace scrolls up in everything but less.
How can one use ShiftSpace to scroll up in less? Or alternatively, is there another pager (POSIX…
Orpheus
- 101
- 1
- 4
10
votes
1 answer
Issue viewing compressed file with "zless", but not with "zmore" or "gunzip -c"
On my FreeBSD 13.2 system, the zless utility cannot view text files compressed with gzip or compress, warning that they may be binary files and then showing garbage if I say I want to see the contents anyway. Strangely, using zmore or gunzip -c…
Kusalananda
- 320,670
- 36
- 633
- 936
10
votes
2 answers
Is it possible to scroll beyond the end of a file in the less pager?
Is it possible to scroll past the bottom in less?
Ideally, I'd like to be able to see the last line of the file I am viewing at the top of my terminal window (the rest of the screen may be filled with tildes (~), which mean empty line/nothing to…
Mateusz Piotrowski
- 4,623
- 5
- 36
- 70