lan@DESKTOP-8ISAT6B MINGW64 /e/Blog/blogRoot (src) $ git status On branch src Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: .gitignore modified: source/tools/Tools2.html modified: source/tools/index.md
no changes added to commit (use "git add" and/or "git commit -a")
Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.
lan@DESKTOP-8ISAT6B MINGW64 /e/Blog/blogRoot (src) $ git status On branch src Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: .gitignore modified: source/tools/Tools2.html modified: source/tools/index.md
no changes added to commit (use "git add" and/or "git commit -a")
命令 (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)
作者 (AUTHOR) Eric Shienbrood, UC Berkeley Modified by Geoff Peck, UCB to add underlining, single spacing Modified by John Foderaro, UCB to add -c and MORE environment variable
历史 (HISTORY) more 命令 出现在 3.0BSD. 本手册页 描述了 more version 5.19 (Berkeley 6/29/88), 目前 它 用在 Linux 社团. 制作文档时 使用了 其他几个版本 的 手册页, 并且 根据 源程序 作了 扩充.
[root@localhost Linux_Test]# cat more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [root@localhost Linux_Test]#
[root@localhost Linux_Test]# more more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U --More--(96%)
more选项
more -num文件:指定屏幕的行数 (以整数表示)
more -5 more_test.txt刚开始只显示文件的前面5行:
1 2 3 4 5 6 7 8
[root@localhost Linux_Test]# more -5 more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 --More--(78%)
如果按下空格,则会再显示下一屏幕(5行):
1 2 3 4 5 6 7 8 9 10 11 12 13
[root@localhost Linux_Test]# more -5 more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 4 5 6 7 8 --More--(81%)
more -d:显示提示信息 按错键不鸣笛
more -d:让more给用户显示提示信息”[Press space to continue, ‘q’ to quit.]”, 当用户按下其他键时,显示”[Press ‘h’ for instructions.]”,而不是扬声器鸣笛.
1 2 3 4 5 6 7 8
[root@localhost Linux_Test]# more -d -5 more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 --More--(78%)[Press space to continue, 'q' to quit.]
more -f:more计数逻辑行而不是屏幕行
more -f:使more计数逻辑行,而不是屏幕行(就是说,长行不会断到下一行).
1 2 3 4 5 6 7 8
[root@localhost Linux_Test]# more -f -5 more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 4 --More--(78%)
more -p:清屏后再显示
不卷屏,而是清除整个屏幕,然后显示文本.
1 2 3 4 5 6
0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 --More--(78%)
[root@localhost Linux_Test]# more -p -5 more_test.txt 0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 --More--(78%) 4 5 6 7 8 --More--(81%) 9 A B C D --More--(85%)
more -c:下一屏幕的内容会覆盖当前屏幕的内容
不卷屏,而是从每一屏的顶部开始显示文本,每显示完一行,就清除这一行的剩余部分.
1 2 3 4 5 6 7
0英文的26个字母大写是:A、 B、 C、 D、 E、 F、 G 、H 、I、 J、 K 、L、 M 、N 、O、 P 、Q 、R、 S、 T、 U、 V、 W、 X 、Y 、Z。阿拉伯数字为:0、1、2、3、4、5、6、7、8、9。 1 2 3 --More--(78%)
[root@localhost Linux_Test]# cat more_test4.txt 1 2 3 4 5 6 7 8 9 0 A B C D E F G H I J K L M N O PP QQ RR SS TT UU VV WW XX YY ZZ [root@localhost Linux_Test]#
Most commands optionally preceded by integer argument k. Defaults in brackets. Star (*) indicates argument becomes new default. ------------------------------------------------------------------------------- <space> Display next k lines of text [current screen size] z Display next k lines of text [current screen size]* <return> Display next k lines of text [1]* d or ctrl-D Scroll k lines [current scroll size, initially 11]* q or Q or <interrupt> Exit from more s Skip forward k lines of text [1] f Skip forward k screenfuls of text [1] b or ctrl-B Skip backwards k screenfuls of text [1] ' Go to place where previous search started = Display current line number /<regular expression> Search for kth occurrence of regular expression [1] n Search for kth occurrence of last r.e [1] !<cmd> or :!<cmd> Execute <cmd> in a subshell v Start up /usr/bin/vi at current line ctrl-L Redraw screen :n Go to kth next file [1] :p Go to kth previous file [1] :f Display current file name and line number . Repeat previous command ------------------------------------------------------------------------------- --More--(12%)
[root@localhost Linux_Test]# more -f -5 more_test4.txt 1 2 3 4 5 /[A-Z] ...跳过 9 0 A B /[A-Z][A-Z] ...跳过 N O PP QQ RR SS TT UU VV WW XX YY --More--(96%)
errno.00 is: Success errno.01 is: Operation not permitted errno.02 is: No such file or directory errno.03 is: No such process errno.04 is: Interrupted system call errno.05 is: Input/output error errno.06 is: No such device or address errno.07 is: Argument list too long errno.08 is: Exec format error errno.09 is: Bad file descriptor errno.10 is: No child processes errno.11 is: Resource temporarily unavailable errno.12 is: Cannot allocate memory errno.13 is: Permission denied errno.14 is: Bad address errno.15 is: Block device required errno.16 is: Device or resource busy errno.17 is: File exists errno.18 is: Invalid cross-device link errno.19 is: No such device errno.20 is: Not a directory errno.21 is: Is a directory errno.22 is: Invalid argument errno.23 is: Too many open files in system errno.24 is: Too many open files errno.25 is: Inappropriate ioctl for device errno.26 is: Text file busy errno.27 is: File too large errno.28 is: No space left on device errno.29 is: Illegal seek errno.30 is: Read-only file system errno.31 is: Too many links errno.32 is: Broken pipe errno.33 is: Numerical argument out of domain errno.34 is: Numerical result out of range errno.35 is: Resource deadlock avoided errno.36 is: File name too long errno.37 is: No locks available errno.38 is: Function not implemented errno.39 is: Directory not empty errno.40 is: Too many levels of symbolic links errno.41 is: Unknown error 41 errno.42 is: No message of desired type errno.43 is: Identifier removed errno.44 is: Channel number out of range errno.45 is: Level 2 not synchronized errno.46 is: Level 3 halted errno.47 is: Level 3 reset errno.48 is: Link number out of range errno.49 is: Protocol driver not attached errno.50 is: No CSI structure available errno.51 is: Level 2 halted errno.52 is: Invalid exchange errno.53 is: Invalid request descriptor errno.54 is: Exchange full errno.55 is: No anode errno.56 is: Invalid request code errno.57 is: Invalid slot errno.58 is: Unknown error 58 errno.59 is: Bad font file format errno.60 is: Device not a stream errno.61 is: No data available errno.62 is: Timer expired errno.63 is: Out of streams resources errno.64 is: Machine is not on the network errno.65 is: Package not installed errno.66 is: Object is remote errno.67 is: Link has been severed errno.68 is: Advertise error errno.69 is: Srmount error errno.70 is: Communication error on send errno.71 is: Protocol error errno.72 is: Multihop attempted errno.73 is: RFS specific error errno.74 is: Bad message errno.75 is: Value too large for defined data type errno.76 is: Name not unique on network errno.77 is: File descriptor in bad state errno.78 is: Remote address changed errno.79 is: Can not access a needed shared library errno.80 is: Accessing a corrupted shared library errno.81 is: .lib section in a.out corrupted errno.82 is: Attempting to link in too many shared libraries errno.83 is: Cannot exec a shared library directly errno.84 is: Invalid or incomplete multibyte or wide character errno.85 is: Interrupted system call should be restarted errno.86 is: Streams pipe error errno.87 is: Too many users errno.88 is: Socket operation on non-socket errno.89 is: Destination address required errno.90 is: Message too long errno.91 is: Protocol wrong type for socket errno.92 is: Protocol not available errno.93 is: Protocol not supported errno.94 is: Socket type not supported errno.95 is: Operation not supported errno.96 is: Protocol family not supported errno.97 is: Address family not supported by protocol errno.98 is: Address already in use errno.99 is: Cannot assign requested address errno.100 is: Network is down errno.101 is: Network is unreachable errno.102 is: Network dropped connection on reset errno.103 is: Software caused connection abort errno.104 is: Connection reset by peer errno.105 is: No buffer space available errno.106 is: Transport endpoint is already connected errno.107 is: Transport endpoint is not connected errno.108 is: Cannot send after transport endpoint shutdown errno.109 is: Too many references: cannot splice errno.110 is: Connection timed out errno.111 is: Connection refused errno.112 is: Host is down errno.113 is: No route to host errno.114 is: Operation already in progress errno.115 is: Operation now in progress errno.116 is: Stale file handle errno.117 is: Structure needs cleaning errno.118 is: Not a XENIX named type file errno.119 is: No XENIX semaphores available errno.120 is: Is a named type file errno.121 is: Remote I/O error errno.122 is: Disk quota exceeded errno.123 is: No medium found errno.124 is: Wrong medium type errno.125 is: Operation canceled errno.126 is: Required key not available errno.127 is: Key has expired errno.128 is: Key has been revoked errno.129 is: Key was rejected by service errno.130 is: Owner died errno.131 is: State not recoverable errno.132 is: Operation not possible due to RF-kill errno.133 is: Memory page has hardware error errno.134 is: Unknown error 134 errno.135 is: Unknown error 135 errno.136 is: Unknown error 136 ......剩下的全都是Unknown errno.253 is: Unknown error 253 errno.254 is: Unknown error 254 errno.255 is: Unknown error 255