Terminal Icon

Repeating previously entered commands

Terminal remembers commands you recently entered during a session. You can repeat a recently used command without retyping it.

To repeat a recent command in Terminal:

  1. 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.

  2. Press Return.

Related Topics

Editing recently used commands

editing