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 8 '15 at 19:07
  • No, that is not possible after the fact. Look here on a sister site of Ask Ubuntu – Fabby Jul 8 '15 at 19:50

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.