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

0
votes
0answers
19 views

How to install a LESS auto-compiler manually

I downloaded source files here for an auto LESS compiler. I downloaded and extracted the files to my Desktop. This tutorial says to put the files into my 'working directory'. So I tried just copying ...
1
vote
1answer
64 views

How can I build a scrollable, colored syslog viewer with less, ccze, grep?

I'd like to view logfiles with colored output, scrollable and searchable. How do I do that? I tried less /var/log/syslog | ccze | grep error, but it is not scrollable.
1
vote
1answer
255 views

Why do vim and less have such similar keybindings?

Do they share code, or is that just a tradition? Are there any other programs with similar keybindings?
2
votes
0answers
25 views

line width too long

I am using laravel and running php artisan route:list and when i press enter the output is a grid of columns representing the name of the route, the uri, the action, and other columns. But the ...
3
votes
4answers
485 views

Is there a way to read characters backwards from the end of a file in the terminal?

For instance, less allows you to read line by line, starting from the beginning. Is there a similar utility or line that could be run in the terminal that could display a file backward character by ...
2
votes
1answer
2k 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 ...
9
votes
2answers
2k 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
71 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
66 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
106 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
35 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 ...
0
votes
1answer
92 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
487 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 usr/bin/...
8
votes
2answers
3k 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
75 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 /usr/share/vim/vim73/...
3
votes
2answers
449 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
884 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.
11
votes
1answer
3k 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?