Hello,
If you use bash then the history will be saved on your ~/.bash_history file. If you use zsh then all will be in your ~/.zhistory
~/.bash_history
~/.zhistory