Descended from the Bourne Shell, Bash is a GNU product, the "Bourne Again SHell." It's the standard command line interface on most Linux machines. It excels at interactivity, supporting command line editing, completion, and recall.
Bash stores commands entered on the command line and provide access to those stored commands so that they can be used again with relative ease.
That is Bash's history/recall function in a nutshell. You just press the up arrow to scroll back through your command history. See the command you want and press Enter/Return to execute it again.
However, maybe you want to change this behavior and disable Bash history.
How to clear and disable Bash history
Use the following Bash builtin history command:
In order to stop the writing of your Bash history to a file when you log out, run the command: