Reverse Search
- At an empty prompt.
- Press Control-R, then start typing part of an old command.
- Press Return to run the match.
- Found and re-run without retyping.
Ready
Try this
Run a few commands like ls, pwd, and cd ~. Then press Control + R and type "cd" to see your previous cd commands appear.
Why it works
Stop retyping commands.
Don't retype — recall.