Skip to content

Try our new Crash Courses!

Become a member using the button below to hide this banner and gain access to our new Crash Courses.

Reuse previous commands in your terminal

Summary

To go through the commands you’ve already entered in your terminal, press the up arrow key. You’ll see the commands in the reverse order that you entered them (i.e., the last command you entered will appear first, then the one before that one, etc.).

Exercises

Try using the arrow keys to go through your history of commands.

References

Terminal User Guide on Apple Support website (see the “Repeat previously entered commands” section at the bottom)

Back to: Terminal Reference > Terminal Tips