Linux common commands-35: more

The more command is similar to less , and is also used for paging display of large files, but it is not as rich in functions as less . For small files you can use cat .

Syntax format: more [parameter] [file]

Common parameters:


 # 查看文件,在左下角会有显示内容的百分比more # 从第10行开始显示more +10 # 先清除屏幕内容,然后从第10行开始显示more -p +10 # 一页只显示10行,包括文件中的空行more -c -10

After entering the more command, there are still some commands that can be used

  • Spacebar, display the next screen of text
  • Enter key, display 1 line down
  • h , display the help screen
  • b , display the content of the previous screen
  • q , exit more
  • = , output the current line number

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.