less is a terminal pager program on Unix, Windows, and Unix-like systems used to view (but not change) the contents of a text file one screen at a time.

learn more… | top users | synonyms

2
votes
2answers
84 views

Can less wrap lines like fmt does?

Like most people I use less as my terminal pager. Occasionally I view files consisting of very long lines of plain or marked-up text. By default less folds these lines at the terminal window edge. ...
0
votes
2answers
169 views

utility “less” takes high cpu

I'm using suse 9 and redhat 5. Sometimes I see that "less" takes a lot of cpu. It happens more on suse 9 though happened on redhat 5 too. I have to admit that the frequency of such event is very low - ...
1
vote
1answer
189 views

Less in cygwin can't read file created from redirected windows cmd script

I'm running windows cmd script from windows console and redirecting output to a file by mycommand.cmd > 'filename ' 2>&1 the problem is, when I'm trying to read that file using less under ...
1
vote
1answer
327 views

How can I set `less` or `more` max lines (scrollable height) limit/boundary in linux?

(Sorry for the title. Any suggestions?) I've set my commandline PS1 to cover 3 lines: white space user, server and pwd $ or # to input I think less (or more?) is configured to break after ...
0
votes
1answer
34 views

less -S server.log (unix)

For a better understanding I prefer to read the logs with no wrap lines. In less I can get this with the -S option. The problem is that I can not select and copy rows that go beyond the right side ...
0
votes
1answer
311 views

Less not scrolling immediately on long lines (xterm-256color vs vt100)

When I press 'j' in a text file with long lines, it won't proceed to the next line until I've pressed j 'n' times. So if I have a file: a b c d e (long line that displays as 5 lines on screen) ...
-1
votes
1answer
39 views

Filtered file viewer

I'm using the less to view log files. This is quite good, but I want to filter out some lines from output. E.g. I don't want to see lines containing "DEBUG" or I want see lines which contain only ...
1
vote
0answers
49 views

Can vim be used to view a growing file?

I often use vim's view for viewing files. Is there a way to use it for a growing file so that I can see the progress as it's happening? Something similar to tail -f or less +F I have two use ...
1
vote
0answers
93 views

Neither less or less -X clear screen on exit. (Trust me, I googled…)

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
1
vote
0answers
40 views

Is it possible to have less +F with lesskey's that work without interrupt?

My situation is that I currently have some lesskeys set. And they do things fine in normal mode, but I want to have the file that I'm view also be updated. This is obviously possible with less +F, ...
0
votes
0answers
11 views

How to wrap search when using less +F

I found the less +F is pretty useful for me to quickly switch to search mode to search the file being tailed. Is there any way I could wrap my search to the top of the file? I also tried to use ...
0
votes
0answers
37 views

Color lines in less based on content

I have a log4j file I am searching through with less and would like to make the lines for different levels of logging be different colors. Log4j has levels like DEBUG, ERROR, and INFO which show up ...
0
votes
0answers
37 views

How do I set $LESS invocation options in a lesskey file?

I'm trying to use less's lesskey-file support, as described in the manpage: KEY BINDINGS You may define your own less commands by using the program lesskey (1) to create a lesskey file. This ...
0
votes
0answers
22 views

`less` stick to bottom of screen

If I pipe the output of a program to less, how can I force the scroll position to stick to the bottom? The default behavior is for each line to be printed until the screen is filled, and continue to ...
0
votes
0answers
58 views

Need to CTRL-C “less” in order to see file?

I have never seen this behavior before using "less" and am wondering if it speaks to a corrupted file? Typically when I use less <filename> the file is immediately displayed. In the case of a ...
0
votes
0answers
76 views

Why does read's timeout break my console?

I have a script that is causing an issue, I've boiled it down to this; #/bin/bash read -t 1 -p 'Wanna continue?' less +F readTimeout.sh echo 'Wont get printed' The original script operated by ...
0
votes
0answers
96 views

Special and diacritic charactres using less, cat and other linux tools

I am using GNU bash, Version 4.1.10(4)-release (i686-pc-cygwin) and set up my .inputrc to allow for special characters and German umlauts etc.: set meta-flag on set convert-meta off set output-meta ...
0
votes
0answers
55 views

Why does `less` not recognize the mouse wheel when stdin is a pipe?

I was wondering why my less sometimes does not recognize the mouse wheel (my terminal is Konsole). Now I've found a pattern: It seems to work whenever less's STDIN comes directly from the shell (zsh ...
0
votes
0answers
103 views

mutt colorizing piped messages

Viewing messages in mutt are colorized, but piping them through the less pager removes colorization. How do I preserve message colorization? I've tried: | less -R but colorization is stripped ...