The syntax for the history command is given below:
The following arguments are used for this command:
|Amount||The amount of commands you wish to view from the command history, latest first. 5 would list the 5 most recent commands you entered into the console.|
Below you will find the working samples of the history command.
This command can print a list of all the cheat codes that you have typed into the console (since you opened the game).
This command would show you the 5 most fresh console commands you used.