2

I know it's possible to see a history of all commands I've run, but is it possible to see a log of all terminal output that occurred after running a command?

Context is that I want to see exactly what happened when I ran a command a couple of days ago, as opposed to yesterday.

  • Only if you prepare (see `man script`) in advance. But, constantly using `script` will fill your disk with data. Another thing you could do, again, in advance, is open from, the menu, open `Edit->Profile Preferences`, click on the `Scrolling` tab, and click the `Unlimited` checkbox. – waltinator Jul 08 '15 at 19:07
  • No, that is not possible after the fact. Look [here on a sister site of Ask Ubuntu](http://unix.stackexchange.com/questions/20272) – Fabby Jul 08 '15 at 19:50

1 Answers1

2

The output is not logged as matter of course. If it's out of your buffer (ie you have the window open still and can scroll back up), or you've closed the terminal, it's gone. Sorry.

In the future, there are a couple of techniques for logging entire bash sessions.

Oli
  • 289,791
  • 117
  • 680
  • 835