using this command in terminal can show you the history of commands
history
maybe you can find the whole history in your .zsh_history or .bash_history?
if you can't display the history of commands by using this command,you may need reset the bash config file.
like ~/.zshrc includes
HISTSIZE=1000
SAVEHIST=2000
HISTFILE=~/.zsh_history
reload fileļ¼
source ~/.zshrc