For Linux systems, we have a command called history. This command will display all the commands entered by you in the terminal. Just type history and press enter then you get what you want. For Windows systems just use the arrow up to toggle through the command prompt.