If you have already spent some time working in the interactive consoles, you don't need to re-type the previously entered commands to repeat them. Instead, press Ctrl+Up/Ctrl+Down (on Window/Linux) and Up/Down arrow buttons (on macOS) to scroll through the history of commands.