Quite often, I'm in the following situation: I launch a command on bash (that takes lot of time to be processes) and I get a long output, which doesn't fit into the terminal and it can't be read even using the scrolling. The only way I have to read it is to redirect the output to a file. In order to do so, I have to relaunch the command, something that I want to avoid as I would take too much time.
I simply want to print on file the output that has been generated in the prevous command.
It there any way to do that?
PS: for example, I give
diff folder1 folder2 #the folders contain many files
wait 60 seconds, and after I decide to print the output