How to increase the memory of the typed-in commands of the terminal

By hitting the tab key while writing in the terminal you can see the former commands that has been typed in. To increase the number of stored commands open the file /root/.bashrc and add this line:

export HISTSIZE=5000

In this way bash will remember the last 5000 typed-in commands.