put the entered commands to the history