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]
Comments