less is a terminal pager program used to view (but not change) the contents of a text file one screen at a time. Questions regarding the use of less in Ubuntu should go by this tag

learn more… | top users | synonyms

-2
votes
0answers
17 views

Install node js for less

I am trying to install less compiler in my Ubuntu 14.04. I have tried several times but there is some problems .At first I had remove node from my computer. It is showing as a broken package. I tried ...
0
votes
1answer
28 views

How do i install less css compiler?

I just installed less css compiler using npm. Now thelesscfile directory is /usr/local/bin/lessc . i'm not clear what i need to change in lessc file and how to understand that compiler has been ...
8
votes
2answers
600 views

What is the default PAGER used by man pages?

What is the default PAGER used by man pages. I,e what is the program runs the man pages? It look some like more or less. I'm sure it's not more since more doesn't support reverse backward.
3
votes
2answers
49 views

How do I keep the screen contents after quitting less or more?

After exiting from less or more, the screen contents are returned to what they were before. This happens with pagers like less/more, and some other commands. Sometimes it is necessary to keep the ...
1
vote
2answers
31 views

how to use mysql with less and -F

I want to use less as a pager for mysql client. I want to add -F to force quit for short outputs. But I can't combine both correctly. root@jupiter:/# mysql -p -u root -h localhost --pager=less -F ...
18
votes
1answer
1k views

How can I redirect what is shown on Terminal to a file, when using the 'less' command?

How do I redirect the Terminal content (the content that currently I'm looking not the entire file, when using the less command) into a outfile until I press the Q to exit from less?
0
votes
1answer
48 views

more or less pager - how to quit

Idiotic question of the day On Ubuntu 12.04 server console, I've run an apt-get update followed by an apt-get upgrade Everything was going swimmingly; when it got to MySQL, it warned me it was about ...
0
votes
2answers
25 views

default behavior of less on .iso files

I use ubuntu 14.04 and have the following problem. Searching this website doesn't turn up anything and neither does google. I work with some data files that have a suffix .iso. These are simple ...
1
vote
1answer
47 views

How to get the long 'less' prompt with sudo?

I have added the following to my user's .bashrc file to get a longer prompt in less: export LESS="-M" This is added to the root user's .bashrc file as well, so when I sudo bash to get a root shell, ...
0
votes
1answer
324 views

sublime text 2 and less2css issue

On ubuntu 14.04 I have installed Sublime Text 2 and a plugin named less2css. When I try to save, for example MAIN.less, file is saved, but isn't compiled into MAIN.css. Sublime alerted me that ...
2
votes
2answers
1k views

How do I make `less` output colors?

When I run a program (for example grep or ls) without a pager, its output is colored. However when I run it piping its output to less, no colors are shown. For example, this command outputs colored ...
0
votes
1answer
62 views

less.vim not working on my Ubuntu 12.04 lts

I found many sites saying that vim can be used as a pager like less with syntax highlighting. So to make it work I added this line to my .bash_aliases file: alias vless='vim -u ...
3
votes
1answer
237 views

Less output does not show output in terminal after quitting it

Previously, if I ran something | less, and then press q, it used to return me to the prompt with the output of less still visible. $ seq 1 100 | less 1 2 3 4 :q $ <prompt here. I can still see the ...
2
votes
2answers
574 views

How to use pygmentize automatically with less [duplicate]

I found pygmentize thanks to this answer, but it would be great if it could be used to highlight text with less or maybe replace the command. Is there a way to do that? Thanks in advance.
8
votes
1answer
2k views

How can I stop less from storing history?

Every time I search for a term in less, it stores my search in the file .lesshst. How can I stop this behavior?