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
322 views

Lessc Textmate bundle doesn't save .css file

I installed: https://github.com/appden/less.tmbundle and the lessc compiler and it seems to work (no errors) but I don't see a compiled .css file. Any ideas?
1
vote
2answers
794 views

Scroll “less” output using scroll wheel on Mac OS X

How can I enable the scrolling of "less" output (rather than the terminal window itself) using the scroll wheel on OSX?
3
votes
2answers
962 views

How do I execute a Linux command whilst using the less command or within the man pages?

I generally pipe the command ls with less and would like to execute a command while it is paging e.g. I come across a file that I would like to delete so I would like to execute the command rm ...
1
vote
1answer
246 views

Why does “ulimit -t 5” have no effect on “less” or “man”, but work on “yes”?

If I run $ ulimit -t 5 $ yes then yes gets killed after 5 seconds, but man and less/more don't. Why are those two immune to ulimit?
1
vote
3answers
635 views

Open man-page with less [duplicate]

Possible Duplicate: How to let man utility to use less to display manual rather than more? How can i open up the Man-page for a command with the less-editor? Alternatively, how can i find ...
0
votes
1answer
326 views

How much can less utility buffer?

I'm curious. You can use less to read through a 100 GB file with no problem. But if you cat a 100 GB file into less, I'm thinking that less must buffer the whole file because there is a pipe (was it ...
6
votes
3answers
503 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?
3
votes
1answer
147 views

Why does cd print when run in command substitution?

If I use the 'cd' BASH built-in in a command substitution, it prints extra stuff to stdout, but only when piped to, eg., less. $ echo `cd .` # The output is a single newline, appended by echo. $ ...
0
votes
1answer
83 views

equivalent to titeInhibit for Cygwin's rxvt-native?

Some programs, such as less, have the annoying idea that I should not be allowed to keep loking at the content of a file while I'm typing the next command. They save the contents of the terminal when ...
1
vote
1answer
362 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
326 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) ...
17
votes
3answers
23k views

Less or More in Windows?

Is there a command in the Windows DOS prompt that is equivalent to the UNIX less or more? Basically, the problem is that when I type hg log, the output has too many lines to fit on the screen and I ...
4
votes
2answers
871 views

The Less command can list directory contents in Gentoo Linux, but not in Ubuntu Linux

I regularly use the 'less' command in Gentoo like so: less /tmp (or any other directory, which I have access to.) Less then proceeds to show me the contents of that directory. I can also use Less to ...
3
votes
1answer
418 views

Why less -F option does not work with -S option

While trying to improve output from hg diff I've noticed that less -F option does not work with -S option. Why is that happening and how to achieve desired effect? Here is handout from man: -F or ...
7
votes
3answers
963 views

Less interrupting in less

I often pipe program output to less, e.g. produce_output | less This works great, until produce_output produces large amounts of output. If I search for some text that is deep into the file, less ...
4
votes
3answers
2k views

How can I tell kate to use CSS highlighting for .less files by default?

How can I tell kate to use CSS highlighting for .less files by default?
2
votes
1answer
162 views

vim doesn't display first line?

when I use vim to open some php files, it starts with line 2, other files display fine. When I view the file with less I have the same issue. however when I edit it with nano I can see that line's in ...
1
vote
2answers
1k views

cygwin > xterm > bash > less : MouseWheel scrolling not working

I am trying to get mousewheel scrolling to work in less, within an xterm in cygwin with XMing x-server and fvwm window manager ! I hope I make sense.. I have tried rxvt, urxvt, urxvt-X, aterm, mrxvt ...
-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 ...
0
votes
1answer
415 views

less with color and locale

Using cygwin I've a problem in less: I can't see colors (for example using grep --color) and I can't set the locale I'm using (LC_ALL=C). I type this command: echo òùàòùàòà | grep --color àò | sort ...
0
votes
1answer
79 views

Hard Drive space not available when switching from Linux install back to Windows

About 6 months ago, I installed Ubuntu on my desktop onto a 2TB harddrive. After a while, I decided I would rather switch back to Windows. So I took my Win7 installation disk, popped it in and started ...
0
votes
1answer
197 views

Enable wheel in mintty for cygwin comands: less and man

I'm using mintty and cygwin. How to can I enable the mouse wheel inside less and man?
0
votes
2answers
82 views

`less` starts `ed`

I can't make less use my favorite editor. To my horror, it starts ed which I've never used and really am not going to. > echo $EDITOR emacsclient > less somefile Pressing v starts ...
1
vote
4answers
2k views

less emulate a TTY to preserve piped color output

When you pipe something through less, the program usually discards color codes because it's not outputting to a TTY. So you have to add --color=always to the options for it to work. ls -l ...
1
vote
1answer
158 views

vim -R /dev/random

I am on the verge of doing alias less='vim -R' for the convenience of being able to scroll with my multitouchpad. However, I like that less -f can view even files like /dev/random that are not ...
3
votes
3answers
3k views

“less” (linux) get/go-to X offset in file

I open a big file with this command: less +G /var/log/blah/file.log Now when I find the desired info I'd like to know its exact offset in this file, so later I can open that file again and return to ...
15
votes
1answer
4k views

How do i get the git pager to clean up screen output after exit?

The pager less doesn't clear the screen as it should do when i use git. I use less all the time and it usually doesn't leave output in the terminal after quit but when less gets executed via git it ...
5
votes
6answers
2k views

Linux less behavior and stderr

I'm watching the output of my complicated command with less, problem is the stderr gets lost. stderr lines normally get listed inbetween stdout lines inside less. I would like them to be printed to ...
0
votes
2answers
259 views

How can I make Unix Less wrap long columns?

I need to view a large tab delimited file using less. There is a column with ~200 characters which I am not interested in seeing but that column pushes all other columns to right making the viewing ...
0
votes
0answers
106 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 ...
7
votes
2answers
1k views

copy and paste tabs between terminal windows in X11

When I copy and paste text using the X11 mouse selection between two terminal windows, tabs are often, but not always, converted to spaces. This appears to depend on the involved terminal ...
1
vote
1answer
571 views

Avoiding newlines when copying wrapped text in Terminal.app

I have text files with lines that of length greater than my terminal width. I generally use less to view these files and often want to copy something that wraps from one line to the next. I've found ...
4
votes
4answers
3k views

LESS syntax highlighting in Geany

I'm using LESS CSS (PHP version). I'm also using Geany in Linux. Is there a LESS syntax file for Geany out there, or how I can go about editing the CSS one to suit LESS?
2
votes
2answers
170 views

Can I display a text file in multiple vertical panes?

I've got a text file with lots of 60 character long lines where I do a search with the "/" command to highlight the hits. I would like to visually inspect this long file with the highlighted text but ...
15
votes
1answer
4k views

How to make mouse wheel scroll the less pager using bash and gnome-terminal?

I have two computers with the latest Fedora. On the first, I'm using zsh and the mouse wheel can be used with the less pager within gnome-terminal to scroll the pager. On the second, I use bash and ...
51
votes
4answers
19k views

less is more? Is more less? I'm so confused

When I first heard their names, I got really confused when I tried to guess what these tools might do, I thought I'd misheard something. What's the difference between more and less, i.e. why ...
2
votes
1answer
621 views

'less' doesn't clear screen after quit

The default behavior for 'less' is to clear the screen after quitting. This behavior stopped when I started using: export TERM=xterm Now 'less' leaves the last page I viewed on the screen, and I ...
9
votes
3answers
3k views

How do you search for tabs in the linux command less?

How do you search for tabs in the linux command less? I've tried /\t but that only seems to search for the character t.
52
votes
6answers
11k views

How can I save the current contents of less to a file?

If I've piped the results of a command to less and then decided that I want to save the contents to a file, is this possible? I've tried setting a mark a at the end of the buffer, and then returning ...
0
votes
1answer
644 views

Best method for CoffeeScript / LESS autocompilation?

I've been using LESS and CoffeeScript substantially lately, and wondering what would be the best method of monitoring. Currently I use LESS.app, which works great, but I don't think there's a solution ...
211
votes
4answers
52k views

How to turn off word-wrap in less

Short version: How can I make the less utility in Linux not wrap lines? Long version: Often I need to view huge CSV files using less with hundreds of columns. I frequently only care about the first ...
0
votes
1answer
317 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 ...
1
vote
1answer
34 views

Can I tell less to read in a whole stream?

Related to this question: How can I get file information in 'less' like with 'man'? Is there a way to ask less to suck in a whole stream to EOF (or at least to some size limit) so ...
4
votes
1answer
211 views

Less hotkeys not working, printing keycodes instead performing action

When I try something like php -i | less Less is not responding to hotkeys, but prints them like pressing "q" results in statusline :q PageDown :^[[6~ Pressing ENTER like "executes" the ...
9
votes
1answer
395 views

How to center search results in Less, instead of moving matched line to top of terminal

When searching for terms in less, I'd like to see lines above and below a search result. Can less be configured to do this? Simple less usage is: - Open file - Search by typing "/" - Move to new ...
3
votes
3answers
715 views

Viewing zip archive contents using 'less' on OS X

I couldn't help but notice that the 'less' program on all of the recent distributions of Linux that I've used (Ubuntu and Gentoo in this case) allow me to view the contents of ZIP and TAR archives, ...
6
votes
2answers
552 views

on quit, 'less' does NOT clear its contents when run in a 'screen' session [duplicate]

Possible Duplicate: Using screen, commands like less and man don't clear the screen afterwards When I quit 'less' in a normal bash, it clears the previous contents displayed by 'less' ...
10
votes
1answer
3k views

How do I include newlines in a search in less?

How can I search for newlines (or end of lines) as part of a search using less? For example, I'd like to search for length=9\n, but don't want to merely search for length==9 because that'd get ...
5
votes
2answers
6k views

LESS and CSS3 syntax highlighting

I found this post on SU, but it doesn't seem to address my needs exactly, so I'll ask a similar question. I normally use PSPad, and I'm also not too scared of Notepad++. They are both good editors, ...
5
votes
3answers
449 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 ...