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

0
votes
2answers
131 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
125 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
255 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
24 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
42 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
1answer
272 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
23 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

`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
49 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 ...
0
votes
0answers
34 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
20 views

nmap buffering output, any way to get faster output?

I'm running nmap against the 256 IPs on my local network. $ nmap -sS -p 80,8080,443,8888 192.168.1.1/24 | less I'd like interactive output piped to less, that I can view as the scan progresses. ...
0
votes
0answers
63 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
63 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
51 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
99 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 ...