| <m> shell-command
<m> represents any mark letter. Pipes a section of the input file to the given
shell command. The section of the file to be piped is between the first line on the
current screen and the position marked by the letter. <m> may also be '^' or '$' to
indicate beginning or end of file respectively.
If <m> is '.' or newline, the current screen is piped.
要仅保存当前显示在终端中的部分,您可以使用该
|
命令。来自
man less
:|
(管道符号).
标记以仅选择终端上可见的内容(或直接点击Enter)tee
保存到文件,例如tee /tmp/section_of_big_file.txt
带截图的顺序: