Type History To Review Your Recent Terminal Commands

Type History To Review Your Recent Terminal Commands
To sign up for our daily newsletter covering the latest news, hacks and reviews, head HERE. For a running feed of all our stories, follow us on Twitter HERE. Or you can bookmark the Lifehacker Australia homepage to visit whenever you need a fix.

Sometimes, you want to find a command you typed in a while ago. You can press the up and down arrows to navigate some of your history, but that isn’t practical when you have to go looking far back. A quicker way is to simply type “history”.

When you do, your terminal window will display a list of recent commands. From there you can find the one you’re looking for. If you know it was within a certain range, you can specify how far back in your history you want to go. For example, “history 25”.

6 Mac Terminal TIps [Colmjude]