Respuestas:
Para guardar solo la sección que se muestra actualmente en su terminal, puede usar el |comando.
De man less:
| <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.
|(el símbolo de la tubería).marca para seleccionar solo lo que está visible en su terminal (o simplemente presione Enter)teepara guardar en un archivo, por ejemplotee /tmp/section_of_big_file.txtLa secuencia con capturas de pantalla:



cat foo | less -o bardóndebarestá el archivo de salida yfooel archivo de entrada?