Is it possible to save output from a command to a file after the command already has been executed?

Posted by NES on Ask Ubuntu See other posts from Ask Ubuntu or by NES
Published on 2011-01-09T13:42:33Z Indexed on 2011/01/10 14:58 UTC
Read the original article Hit count: 252

Filed under:
|
|

Does an elegant way exist to save the output of a command to a file after the command has been run, with the terminal window is open?

I mean once the command has been executed in the terminal. The output is still there 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?

© Ask Ubuntu or respective owner

Related posts about terminal

Related posts about file