There are multiple ways to get to the past history in the Mac Terminal application.
The easiest and quickest way to get to recent history is by pressing the up ↑ and the down ↓ arrow keys on your keyboard.
But if you want to see a list of all the recent commands that you have executed on the Terminal, then you have to make use of the history command.
history
As you can see, you can pipe the history command with grep to filter out the specific command that you are looking for.
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!


Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!