Skip to main content

Questions tagged [more]

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

Filter by
Sorted by
Tagged with
0 votes
3 answers

open man (or info) pages from the same position where you left off last time

I treat man pages is the primary source of documentation about installed software. I would like to use them not only as a reference, but actually read them from beginning to end. And here comes the ...
Sergey Guzenkov's user avatar
0 votes
1 answer

Buffering follow + automatic pagination of output

I have a utility that continuously outputs live logs from a program. But it can be quite hard to read the logs lines as they scroll past me in the terminal. Ideally it should scroll to one full page, ...
David S.'s user avatar
  • 101
0 votes
1 answer

mkfs.xfs completely ignoring "|more" redirect

trying to install gentoo linux and can't format the drive with xfs because when I run mkfs.xfs /dev/sda3 it throws an error and then displays help, but the help is so big that it takes up the entire ...
Zack's user avatar
  • 1
10 votes
1 answer

Issue viewing compressed file with "zless", but not with "zmore" or "gunzip -c"

On my FreeBSD 13.2 system, the zless utility cannot view text files compressed with gzip or compress, warning that they may be binary files and then showing garbage if I say I want to see the contents ...
Kusalananda's user avatar
  • 339k
1 vote
1 answer

Reinstalling more

I messed up and rewrote /usr/bin/more with some gibberish. Is there a way to reinstall only more? Or in which package can I find the more command?
cdm's user avatar
  • 111
1 vote
2 answers

New "more" command form feeds before every file: how to suppress?

For 35 years I've been watching the more command work like this: when specifying multiple files, and without any options, it displays a header and the file contents as follows (most easily seen for ...
rphair's user avatar
  • 53
1 vote
1 answer

Auto page down / scrolling after a few seconds using more, less, or something similar

When using more or less, the output is paused at the end of each page. Is there some way to have it pause only for a few seconds (configurable or not), and then continue to the next page? Is there ...
entonio's user avatar
  • 113
0 votes
1 answer

Make `less` exit after last page or `more` interpret colors

In a script, I’m doing a git diff that I want to quickly page through. When I’m finished, the pager will exit and the script will continue. more is great for the task, because I can space through it ...
user137369's user avatar
0 votes
2 answers

Page break characters for more/less

I am on Mac OS. I have a C++ program that generates 1000+ lines of data that I redirect to a file. I then use less / more to go through the file. I'd like to have less pause at user-defined chunks of ...
stackoverflowuser2010's user avatar
2 votes
1 answer

More / file reporting "not a text file" file which contains only one letter and newline

I am confused by the output of the more program under linux. When creating a file which contains only a single letter (except for special letters like ä which work fine), more does not report the file'...
mutableVoid's user avatar
0 votes
1 answer

how do I output multiple files with a heading for each one but without needing to page through them? [duplicate]

I am running a file search command with ag -g foo and I'd like to see the contents of the files I find. If I do ag -g foo | xargs more then the more command makes me press the spacebar to advance ...
joachim's user avatar
  • 7,747
0 votes
1 answer

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 ...
welkin's user avatar
  • 11
0 votes
3 answers

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 ...
Wis's user avatar
  • 213
1 vote
2 answers

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 ...
LocalHost's user avatar
  • 509
-1 votes
1 answer

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 ...
LocalHost's user avatar
  • 509
0 votes
1 answer

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 ...
Pin-Yen 's user avatar
1 vote
1 answer

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/...
cirrusio's user avatar
  • 141
1 vote
4 answers

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-...
exar's user avatar
  • 29
-1 votes
1 answer

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 ...
jeevan kishore's user avatar
-1 votes
1 answer

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/ How can I, in one line, print to the screen the contents of the file given by ...
CJ7's user avatar
  • 839
4 votes
3 answers

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 ...
Alan's user avatar
  • 43
8 votes
2 answers

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 ...
kdoggett's user avatar
1 vote
1 answer

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 ...
vladimirg's user avatar
4 votes
3 answers

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
Aravind's user avatar
  • 1,619
4 votes
2 answers

How to change pager key bindings

I'd like to swap RETURN (scroll forward N lines, default one window) and SPACE (scroll forward N lines, default 1) in less to get a for me more natural way to page through man pages. I saw years ...
1.61803's user avatar
  • 1,261
8 votes
2 answers

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 ...
elbarna's user avatar
  • 12.8k
1 vote
1 answer

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 ...
ivivek_ngs's user avatar
2 votes
1 answer

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 ...
Sasa's user avatar
  • 131
2 votes
1 answer

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). ~/...
Hodaya Shalom's user avatar
0 votes
1 answer

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 ...
Darren Cook's user avatar
  • 1,014
1 vote
1 answer

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 ...
chris's user avatar
  • 129
17 votes
2 answers

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?
Mohsen's user avatar
  • 2,595
0 votes
1 answer

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?
Michael Durrant's user avatar
298 votes
5 answers

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 ...
Hgtcl's user avatar
  • 3,091
35 votes
3 answers

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 ...
Manuel Selva's user avatar
  • 3,534
17 votes
1 answer

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. ...
user avatar
0 votes
3 answers

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 ...
SirCobalt's user avatar
  • 450
4 votes
1 answer

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 ...
Sergey's user avatar
  • 551
5 votes
3 answers

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 ...
tshepang's user avatar
  • 66.2k
57 votes
8 answers

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 ...
Zaid's user avatar
  • 10.8k