The Difference Between more, less And most Commands

difference between more, less and most commands

7 Responses

  1. Did you even bother to press “h” in more yourself? Did YOU read the man page before writing this article? In more you can scroll back too by pressing b when reading a file. The only limitation is that it doesn’t work for pipes (ls|more for example).

    Also keep in mind that more handles color codes correctly, less does not.

  2. AAA says:

    Nice summary, IMO.

    Add syntax highlighting
    https://gist.github.com/textarcana/4611277

    Have a look at bat as well…
    https://github.com/sharkdp/bat

  3. Gérard Talbot says:

    You wrote:
    To search for a string, type the search query after the forward slash (/) like below:

    /linux

    But according to the man more documentation, it should be +/linux, like this:

    $ more +/linux ostechnix.txt

  4. Gérard Talbot says:

    I can not see the “+” in the more command I wrote … this must be caused by your comment form.

  5. Vernon Tillerson says:

    If you save output which has colored text (ANSI VT escape sequences) only “less” can display these as colored text rather than just showing the raw characters, when the -R flag is invoked vis less -R colored_output.log

    most makes a good pager for manual pages.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.