Search code examples
macosterminalrecoverydata-recoverydisaster-recovery

Restore terminal log mac printed output


Is there a way to recovery the output of a terminal? My MacBook stopped working and restarted, now I lost the information of the screen of the terminal. I need to recovery it because I need to use the output printed data, is there a way?

This message is on the top of terminal: [Restored contents truncated]


Solution

  • Unfortunately, to the best of my knowledge, there's no history of terminal output unless you were logging it (ex: by using a logging script).

    Can you recreate the output by running the same commands again?

    To see the commands you typed you can simply use history.