When you are using the terminal windows of a linux flavor, It will record all the commands that you type on the terminal window which makes it easy to retrieve and reuse them. By default, up to 500 commands that you have used are saved into a hidden file (~/.bash_history). You can access these commands by using your up/down keys on your keyboard. To view all the entries within the history, run the command
This will then display each entry within the .bash_history file. IF you are wanting to clear your history, just use the command:
If you have many accounts with in your PC, you have to do this for all the user accounts in the PC.