When My computer crashes while using Terminal, I see this kind of screen when I reopen Terminal, showing me what was previously on the Terminal screen.

Where on my hard drive is that information (the one above the grey line which reads "Restored Jan 27, 2018 at 7:07:50 PM") stored for Terminal to show after the crash?

restored terminal window

1 Answer 1


The history files for the Bash-Terminal are located within:


(and called *.history)

or in this file:


(Both of them are hidden)

You can find other log files if you open the console app.

If you are curious about the Terminal.app log see here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .