lessis good for viewing long outputs from other programs. There may be times when you pipe the output of a program to
lessand realise only later that you want the output in a file... maybe because you need to send the output to someone via email.
You can quit
lessand change the command line to output to a file. But there are better/faster options.
scommand to save its input to a file. Just press
s, enter a file path to save the text to, and you're done.