Linux shell 操作命令 more Linux shell 命令行 让你真正开始 Linux之旅,本文描述 Linux 操作命令 more 1、简介 more 命令,功能类似 cat
2、主要功能 more 命令从前向后读取文件,内容从上到下显示在屏幕上,因此在启动时就加载整个文件 3、用法/命令格式 more[选项] {文件} 4、常用参数解析 4.1 常用参数
4.2 常用操作 more 命令 显示 之后,会有一些 基本的操作
5、辅助功能 5.1 行号显示 5.1.1 第n行 开始显示
# more +3 /etc/hosts
# The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 5.1.2 输出 显示 n 行
# more -3 /etc/hosts 127.0.0.1 localhost 127.0.1.1 ubuntu
5.1.3 连续空行显示 一行
5.2 字符搜索
# more +/ff02 /etc/hosts
...skipping # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 5.3 清屏显示
5.4 提示 信息
5.5 去除 下划线
# more -u /etc/hosts 127.0.0.1 localhost 127.0.1.1 ubuntu
# The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 微信公众号 欢迎 扫码 关注 ---------------------------------------------------------------------------------------------------------------------- 我们尊重原创,也注重分享,文章来源于微信公众号:石头逍遥,建议关注公众号查看原文。如若侵权请联系qter@qter.org。 ---------------------------------------------------------------------------------------------------------------------- |