Terminal remembers commands you recently entered during a session. You can repeat a recently used command without retyping it.
Press the Up Arrow key. The last command you entered appears on the command line. If the command you want was used earlier, continue pressing the Up Arrow key until you see the command you want.
Press Return.