You could use the "script" command to save all shell session output to a file, in case it is needed.
Or you could get into the habit of appending "| tee /tmp/<uniquename>" each time you run a command you are likely to want to reuse output from.
Thanks, -- Herculano de Lima Einloft Neto