Search This Blog

Thursday, February 12, 2009

Unix MORE Command

more(In UNIX)

More is a command used to read text files. For example, we could do this:

   % more poems

The effect of this to let you read the file "poems ". It probably will not fit in one screen, so you need to know how to "turn pages". Here are the basic commands:

  • q --- quit more
  • spacebar --- read next page
  • return key --- read next line
  • b --- go back one page

1 comment:

  1. The file which not fits in one screen read by more page wize. It display files on a page-by-page basis.

    -num - This option specifies an integer which is the screen size (in lines).
    -f Causes more to count logical, rather than screen lines (i.e., long lines are not folded).
    -p Do not scroll. Instead, clear the whole screen and then display the text.
    -c Do not scroll. Instead, paint each screen from the top, clearing the remainder of each line as it is displayed.
    -s Squeeze multiple blank lines into one.
    -u Suppress underlining.
    +/ The +/ option specifies a string that will be searched for before each file is displayed.

    ReplyDelete