IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

more命令

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

more命令

more命令类似less,以分页的形式浏览文件内容,在more命令退出后会在shell上留下操作的内容,在分页浏览时使用h键输出说明文件。

语法

more [options] [file]

参数

  • -d: 提示使用者,在画面下方显示[Press space to continue, 'q' to quit.],如果使用者按错键,则会显示[Press 'h' for instructions.]而不是滴声。
  • -f: 计算行数时,以实际上的行数,而非自动换行过后的行数,某些单行字数太长的会被扩展为两行或两行以上。
  • -l: 取消遇见特殊字元^L送纸字元时会暂停的功能。
  • -c: 不进行滚动而是从顶部绘制每个屏幕,清除每行显示的其余部分,跟-p相似,不同的是先显示内容再清除其他输出。
  • -p: 不以滚动的方式显示每一页,而是先清除输出后再显示内容。
  • -s: 当遇到有连续两行以上的空白行,就代换为一行的空白行。
  • -u: 不显示下划线,根据环境变数TERM指定的terminal而有所不同。
  • -<num>: 指定每屏的行数。
  • +<num>: 从第num行开始显示。
  • +/<str>: 在每个文档显示前搜寻字串str,然后从该字串之后开始显示。
  • -V: 显示版本信息。

常用操作

  • h or ?: 帮助菜单,显示命令的摘要。
  • SPACE: 显示接下来的k行文本,默认为当前屏幕尺寸。
  • Enter: 向下n行,需要定义,默认为1行。
  • Ctrl+F: 向下滚动一屏。
  • Ctrl+B: 返回上一屏。
  • =: 输出当前行的行号。
  • :f: 输出文件名和当前行的行号。
  • V: 调用vi编辑器。
  • ! <cmd>: 调用Shell,并执行命令。
  • q: 退出more命令。

示例

分页显示/var/log/ufw.log文件内容。

more /var/log/ufw.log

从第20行开始显示/var/log/ufw.log文件内容。

more +20 /var/log/ufw.log

1行分页显示/var/log/ufw.log文件内容。

more -1 /var/log/ufw.log

每日一题

https://github.com/WindrunnerMax/EveryDay

参考

https://www.runoob.com/linux/linux-comm-more.html
https://www.tutorialspoint.com/unix_commands/more.htm
https://alvinalexander.com/unix/edu/examples/more.shtml

文章永久链接:https://tech.souyunku.com/?p=39771


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(79) 打赏



未经允许不得转载:搜云库技术团队 » more命令

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367