Does an elegant way exist to save the output of a command to a file after the command has been run, while the terminal window is open i.e. once the command has been executed in the terminal?
The output is still present in terminal. Now I could copy & paste all the lines and save it to a file.
But perhaps does a method exist to somehow write the output buffer of a terminal window to a file or even better the output of an already executed command?