Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [more]

more is a filter for paging through text in the terminal one screenful at a time.

0
votes
1answer
42 views

Why do cat and more wrap lines differently?

It seems that more adds line breaks, whereas cat does not. As a result cat results will change to fit the terminal window if I resize the window, whereas more results stay put with the line breaks ...
0
votes
3answers
45 views

are there side-effects to remapping/aliasing less to vim?

I added the following to .bashrc to remap less to vim alias vsi='vim -R -c ":map Q :q!<enter>" -' # Vim Standard Input [readonly] alias less='vsi' the reason is that I don't want to maintain ...
1
vote
2answers
56 views

navigating forward in more pager using f

It is given in the man page of more that f is used to skip forward k screenful of text(default to 1).I saved a very long file using cat and used more to show it on the screen page by page but when i ...
-2
votes
1answer
35 views

Unable to search a string using more pager

I opened a file using the more pager,i was trying to find a string in this file using / as shown in the figure below,but it is saying that pattern not found even though the string i have searched is ...
0
votes
1answer
272 views

How to redirect output of more to a file

I would like to pipe the output of tree command to more, ignoring the first line. Then redirect the output of more command to a file. If I type tree SOME_DIRECTORY | more +2 >> OUTPUT_FILE The ...
1
vote
1answer
5k views

How do I view all syslog entries

How do I view all messages in the syslog? I am looking for messages that my program is generating that I have tagged with [pistreaming] so I can find these messages usign grep sudo more /var/log/...
1
vote
4answers
183 views

Using More or Less in this Scenario [closed]

I'm taking an Intro to Linux class in college. Our teacher wants us to show a command that can be used for this question: "Display the contents of a file with paging control that provides line-by-...
0
votes
1answer
555 views

more command displays how many lines at a time?

When we use the more command it usually print the screensize of text, so my question is the maximum number of lines a more command usually prints??? I mean by default how many lines it can accommodate ...
-1
votes
1answer
553 views

How to cat file from output of other command?

If I do: perldoc -l WWW::Mechanize I get the following output: /usr/local/lib/perl5/site_perl/5.16.3/WWW/Mechanize.pm How can I, in one line, print to the screen the contents of the file given by ...
4
votes
2answers
277 views

Display file text one page at a time, wait 20 seconds, then auto-advance

This question is for AIX 7 I have been working on a monitor which will display several pages of text. Initially the end user wanted a scrolling list for which I constructed this: IFS=''; cat plfeed ...
3
votes
1answer
3k views

more less …skipping… when searching

When I search a file in less or more, it will remove lines and replace them with "skipping". Does anyone know what causes this and/or how to avoid it? After I '/' search a log file using either more ...
1
vote
1answer
37 views

How to make program which will react on button pressing (such as “more” on 'q') [closed]

I' m trying to realize, how does work pg\more\less utilities. For example, cat somebigfile | more. More now in interactive mode. His fd table is: 0 (read pipe from cat) 1 (stdout) 2 (stderr) I can ...
4
votes
3answers
724 views

Open a file with line numbers in more (AIX)

How do I open a file in more mode with line numbers. I am using ksh on AIX for less I use -N but for more it is not working. less -N filename
8
votes
2answers
393 views

How to prevent HP-UX command “less” from messing up my prompt?

I don't like the output of more on HP-UX, so I use less instead as a pager: PAGER=less Its output is nice, but, on Linux, when I use man and then quit, I go back to the shell, and the display looks ...
1
vote
1answer
274 views

Problem with grep on multiple files and not getting desired output

I am using the below command on a file to extract few lines based on chr# ( different chromosome numbers). This is just a single file am working on. i have 8 such files and for each file I have to do ...
2
votes
1answer
34 views

When using less with -S option, it moves text on top when I press right key

I am using less as pager in MySQL, and I have configured it with -S flag, so that it does not wrap text. The only issue is that, when I have a small result set and want to see what is on the right, I ...
2
votes
1answer
334 views

more command behavior

Someone can explain me about the more command? when I use it with || or with &&, it seems to have an exist status of true, even when the file is not found(Unlike the other commands). ~/...
0
votes
1answer
119 views

Why does SPACE sometimes not work with more (or less)

Usually with |more I press space to get another screenful. But with some commands space just does nothing, and I need to actually keep doing SPACE-ENTER to scroll forward a screen at a time. Both more ...
1
vote
1answer
645 views

How can I reset the bash filename completion for “more”?

I've done something that has changed the way TAB auto-complete works, but only for the more command. Every other command lists the possible completions, but more now lists ALL of the possibilities ...
15
votes
2answers
2k views

How can I pipe colored tree result to less or more?

I get colored tree using tree -C but when I pipe it to less I get results like this: tree public/ -C | less How can I have colors in less in this case?
0
votes
1answer
189 views

less or more - which to use when? [duplicate]

less and more seem to have very similar functionality in that they both page through text a screen at a time. What reasons are there to use one over the other?
196
votes
4answers
154k views

What are the differences between most, more and less?

I'm now using Arch Linux, and find a command most works like more and less. To understand the differences between them is a confusing problem. The question Isn't less just more? mentions the ...
18
votes
3answers
51k views

Characters encodings supported by more, cat and less

I have a text file encoded as following according to file: ISO-8859 text, with CRLF line terminators This file contains French's text with accents. My shell is able to display accent and emacs in ...
13
votes
1answer
2k views

Making less print to stdout if an entire file can be displayed on one screen

When more is passed a file whose contents can be displayed on one screen, it just writes the file's contents to stdout without pagination. If the file cannot fit on one screen, more paginates it. ...
0
votes
3answers
346 views

Is more or find more resource intensive in finding the number of times an item lists in a file?

I recently read How to find the total number of occurrences of text and files with find command, which asked about a way to find the number of times text "abc" appears in a file. The answer there ...
3
votes
1answer
276 views

Using more command

Is there any case or reason to use "more" unix command instead of "less". As far as I see "less" is "better" in all senses, so does it mean that "more" is a command which has no reason to be used when ...
4
votes
3answers
2k views

Which systems have 'pager' shortcut/alias?

On a Debian system, one can type pager in order to use whatever pager program happens to be default/available. By default, less is used, and if not available, the lesser more gets to do the job. Is ...
45
votes
8answers
22k views

Isn't less just more?

When I do more filename and less filename, it would seem that the resulting terminals are quite similar. I can navigate and search through my files identically (j, Space, /pattern, etc.). I find it ...