Example uses of the command "more"

文章转载至:http://linux.about.com/od/commands/a/Example-Uses-Of-The-Command-More.htm

more 目标文档

空格   翻到下一页

b    翻到上一页

=   显示当前看到了多少行


Example uses of the command "more"

A Brief Introduction

By Juergen Haas

The command  more allows you to quickly view a text file or any section of it. It comes with all major Linux distributions and does not require any set-up or installation.

The program more does not require the whole file to be loaded in memory to view parts of it. Therefore it starts up faster on large files than editors.

It is similar to the more advanced program less, but does not provide all the navigation options and does not scroll back as efficiently.

To get started, simply type "more file-name" at a command prompt (terminal), where file-name would be the name of the file you want to inspect. This will show the beginning of the file, displaying as many lines as the screen can hold. For example

more table1
will display the top of file "table1".

Once the program is started up on a particular file, you can use the space bar to scroll forward one page at a time, or the "b" key to move back one page. Pressing the "=" key will display the current line number in the file.

To search for a word, number, or sequence of characters, type in "/" followed by the search string or regular expression.

For more information see the more man page.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值