where is previous Terminal sessions info stored?
The history files for the Bash-Terminal are located within:


  ~/.bash_sessions/


(and called *.history)

or in this file:


  ~/.bash_history


(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.