linux more 命令
来源:互联网 发布:供应链协同软件 编辑:程序博客网 时间:2024/05/17 09:29
功能
显示文件的内容语法
more [选项] 文件选项
-num 设定每屏显示的行数
+num 从设定的行开始显示
-c 换页时不滚屏
-d 显示 [Press space to continue, 'q' to quit.(按空格键继续,“q”键退出。)]
-p 换页时不滚屏,与 -c 效果类似
-s 连续的多个空白行显示为一个空白行
+/pattern 显示前搜索 pattern 串,然后从搜索到的行的前两行开始显示
操作
b 显示上一屏的内容
v 调用vim编辑器
q 退出 more 命令
h 显示帮助信息
= 显示当前行的行号
空格键 显示下一屏的内容
回车键 显示下一行的内容
示例
more a.txt显示文件内容
A01
B02
C03
D04
E05
F06
G07
H08
B02
C03
D04
E05
F06
G07
H08
more -5 a.txt每屏显示 5 行
A01
B02
C03
D04
E05
B02
C03
D04
E05
more -c -5 a.txt每屏显示 5 行,不滚屏
A01
B02
C03
D04
E05
B02
C03
D04
E05
more -c -5 +2 a.txt每屏显示 5 行,不滚屏,从第 2 行开始显示
B02
C03
D04
E05
F06
C03
D04
E05
F06
more -5 +/E a.txt每屏显示 5 行,搜索 E
lychie@ubuntu:/test$ more -5 +/E a.txt
...跳过
C03
D04
E05
F06
G07
...跳过
C03
D04
E05
F06
G07
0 0
- LINUX命令:more命令
- linux命令:more命令
- Linux下more命令
- linux的more 命令
- Linux more 命令详解
- linux more命令
- linux more命令详解
- linux 命令----more
- linux中more命令
- linux:less、more命令
- Linux命令:more
- linux more 命令
- Linux:more命令
- linux命令之more
- Linux more命令
- Linux命令more
- Linux more 命令 【转载】
- linux命令--less|more
- Linux core 调试
- FOJ1305 Terrible Sets
- tp的调试工具
- 树莓派的备份
- date
- linux more 命令
- jquery那点事之animate
- linux coredump调试
- Activity的启动模式与flag详解
- rabbitmq-server 安装方法
- Qt查找文件及文本(备忘备用)
- VS2010 窗口重绘
- 30多年程序员生涯经验总结
- windows 内存管理之 Section and View