Réponses:
Pour enregistrer uniquement la section actuellement affichée dans votre terminal, vous pouvez utiliser la |commande.
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.
|(le symbole du tuyau).marque pour sélectionner uniquement ce qui est visible sur votre terminal (ou appuyez simplement sur Enter)teepour enregistrer dans un fichier, par exempletee /tmp/section_of_big_file.txtLa séquence avec captures d'écran:



cat foo | less -o baroùbarsont le fichier de sortie etfoole fichier d'entrée?