more 中文man页面

系统
More 是一个过滤器, 用于分页显示 (一次一屏) 文本. 这个版本非常基本. 用户应该知道 less(1) 提供了more(1) 的模拟, 并且做了增强.

名字 (NAME)

more - 在显示器上阅读文件的过滤器

总览 (SYNOPSIS)

more [-dlfpcsu ] [-num ] [+/ pattern] [+ linenum] [file ... ]

描述 (DESCRIPTION)

More 是一个过滤器, 用于分页显示 (一次一屏) 文本. 这个版本非常基本. 用户应该知道 less(1) 提供了more(1) 的模拟, 并且做了增强.

选项 (OPTION)

下面 介绍 命令行选项. 选项 可以 从 环境变量 MORE 中获取 (要 确保 它们 以 短横线 开头 (``-'')), 但是 命令行选项 能够 覆盖 它们.

-num
这个选项指定屏幕的行数 (以整数表示).
-d
more 给 用户 显示 提示信息 "[Press space to continue, 'q' to quit.]", 当 用户 按下 其他键 时, 显示 "[Press 'h' for instructions.]", 而不是 扬声器 鸣笛.
-l
More 在 通常情况下 把 ^L (form feed) 当做 特殊字符, 遇到 这个字符 就会 暂停. -l 选项 可以 阻止 这种特性.
-f
使 more 计数 逻辑行, 而不是 屏幕行 (就是说, 长行 不会 断到 下一行).
-p
不卷屏, 而是 清除 整个屏幕, 然后 显示 文本.
-c
不卷屏, 而是 从 每一屏的 顶部 开始 显示 文本, 每 显示完 一行, 就 清除 这一行的 剩余部分.
-s
把 重复的空行 压缩成 一个 空行.
-u
防止下划线.
+/
在 显示 每个文件 前, 搜索 +/ 选项 指定的 文本串.
+num
从行号 num 开始显示.

命令 (COMMAND)

more 的交互命令基于 vi(1). 有些命令 以 一个 十进制数字 开始, 在 下面的描述 里 称之为 k. 后面的 描述中, ^X 指 control-X.

h or ?
帮助: 显示 这些 命令 的 摘要. 你 如果 忘掉 所有 其他的命令, 请记住这个.
SPACE
显示 接下来的 k 行文本. 缺省值 是 当前的屏幕大小.
z
显示 接下来的 k 行文本. 缺省值 是 当前的屏幕大小. 参数 成为 新的缺省值.
RETURN
显示 接下来的 k 行文本. 缺省值 是 1. 参数 成为 新的缺省值.
d or ^D
卷屏 k 行. 缺省值 是 当前的 卷屏大小, 初始化为 11. 参数 成为 新的缺省值.
q Q INTERRUPT
退出.
s
向前跳过 k 行文本. 缺省值 是 1.
f
向前跳过 k 屏文本. 缺省值 是 1.
b or ^B
向后跳回 k 屏文本. 缺省值 是 1.
跳到 上一次 搜索 开始 的 地方.
=
显示当前行号.
/ pattern
搜索 第 k 个 符合 正则表达式的 文本串. 缺省值 是 1.
n
搜索 *** 第 k 个 符合 正则表达式的 文本串. 缺省值 是 1.
!<cmd> or :!<cmd>
在子 shell 中执行 <cmd>.
v
启动 /usr/bin/vi, 指向 当前行.
^L
刷新屏幕.
:n
跳到 后面 第 k 个 文件. 缺省值 是 1.
:p
跳到 前面 第 k 个 文件. 缺省值 是 1.
:f
显示 当前文件名 和 行号.
.
重复上次命令.

环境 (ENVIRONMENT)

More 利用 下面的 环境变量 (如果 它们 存在):

MORE
这个变量 设置 你 喜欢的 more 选项.
SHELL
当前使用的 shell (一般说来 就是 登录 shell).
TERM
指定 终端类型, more 用它来 获取 操作屏幕 所需的 终端特性.

另见 (SEE ALSO)

vi(1) less(1)

#p#

NAME

more - file perusal filter for crt viewing  

SYNOPSIS

more [-dlfpcsu ] [-num ] [+/ pattern] [+ linenum] [file ... ]  

DESCRIPTION

More is a filter for paging through text one screenful at a time. This version is especially primitve. Users should realize that less(1) provides more(1) emulation and extensive enhancements.  

OPTIONS

Command line options are described below. Options are also taken from the environment variable MORE (make sure to precede them with a dash (``-'')) but command line options will override them.

-num
This option specifies an integer which is the screen size (in lines).
-d
more will prompt the user with the message "[Press space to continue, 'q' to quit.]" and will display "[Press 'h' for instructions.]" instead of ringing the bell when an illegal key is pressed.
-l
more usually treats ^L (form feed) as a special character, and will pause after any line that contains a form feed. The -l option will prevent this behavior.
-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.
+num
Start at line number num

COMMANDS

Interactive commands for more are based on vi(1). Some commands may be preceded by a decimal number, called k in the descriptions below. In the following descriptions, ^X means control-X.

h or ?
Help: display a summary of these commands. If you forget all the other commands, remember this one.
SPACE
Display next k lines of text. Defaults to current screen size.
z
Display next k lines of text. Defaults to current screen size. Argument becomes new default.
RETURN
Display next k lines of text. Defaults to 1. Argument becomes new default.
d or ^D
Scroll k lines. Default is current scroll size, initially 11. Argument becomes new default.
q or Q or INTERRUPT
Exit.
s
Skip forward k lines of text. Defaults to 1.
f
Skip forward k screenfuls of text. Defaults to 1.
b or ^B
Skip backwards k screenfuls of text. Defaults to 1. Only works with files, not pipes.
Go to place where previous search started.
=
Display current line number.
/ pattern
Search for kth occurrence of regular expression. Defaults to 1.
n
Search for kth occurrence of last r.e. Defaults to 1.
!<cmd> or :!<cmd>
Execute <cmd> in a subshell
v
Start up an editor at current line. The editor is taken from the environment variable VISUAL if defined, or EDITOR if VISUAL is not defined, or defaults to "vi" if neither VISUAL nor EDITOR is defined.
^L
Redraw screen
:n
Go to kth next file. Defaults to 1.
:p
Go to kth previous file. Defaults to 1.
:f
Display current file name and line number
.
Repeat previous command

ENVIRONMENT

More utilizes the following environment variables, if they exist:

MORE
This variable may be set with favored options to more
SHELL
Current shell in use (normally set by the shell at login time).
TERM
Specifies terminal type, used by more to get the terminal characteristics necessary to manipulate the screen.

SEE ALSO

vi(1) less(1)  

责任编辑:韩亚珊 来源: www.linuxforum.net/man-pages/
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-11-01 13:46:50

中文mantac

2011-08-25 16:55:26

gets中文man

2011-08-25 15:49:02

freopen中文man

2011-08-25 16:00:56

fflush中文man

2011-08-25 16:08:55

fsetpos中文man

2011-08-25 15:33:18

exit中文man

2011-08-24 17:19:00

raw中文man

2011-08-25 10:55:37

services中文man

2011-08-25 09:35:26

units中文man

2011-08-24 13:57:35

DECLARE中文man

2011-08-11 15:28:43

ali中文man

2011-08-23 17:18:44

umount中文man

2011-08-23 17:24:11

userdel中文man

2011-08-23 17:33:22

rdev中文man

2011-08-23 18:05:21

ABORT中文man

2011-08-18 19:15:25

group中文man
点赞
收藏

51CTO技术栈公众号