Javatpoint Logo
Javatpoint Logo

Linux more command

As 'cat' command displays the file content. Same way 'more' command also displays the content of a file. Only difference is that, in case of larger files, 'cat' command output will scroll off your screen while 'more' command displays output one screenful at a time.

Following keys are used in 'more' command to scroll the page:

  • Enter key: To scroll down page line by line.
  • Space bar: To go to next page.
  • b key: To go to the backward page.
  • / key: Lets you search the string.



Linux More Command

Look at the above snapshot, in the left corner it shows 0%, which indicates that 0% page is displayed.

To scroll down use 'space' button, next page will be displayed.

If you want to scroll down the page line by line use 'enter' key.

If you want to go to the last or backward page use 'b' key.

Linux more options

more -numLimits the line displayed per page.
more -dDisplays user message at right corner.
more -sSqueeze blank lines.
more +/string nameIt helps to find the string.
more +numUsed to display the content from a specific line.

Note: The 'more' command can't be used to display binary files.

Next TopicLinux Less

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA