One of my most used commands in Linux is the history command, it lists all your recent commands. The problem with this is you might have to scroll through hundreds before you get to one of any interest, so adding grep to search through these and bring back only relative one’s is great.
Give it a try (just change searchcriteria for what you want like apt-get or tar):
history | grep searchcriteria
Manual pages:
Related posts:
- Howto: Use Xbox Controllers (original, 360, 360 wireless, 360 guitar) with Linux
- HowTo Fix: “There is a problem with your sound card. Spotify can’t play music.” (Wine)
- HowTo: Run .jar files in Ubuntu
- HowTo: Install Player/Stage in Ubuntu Karmic (9.10)
- HowTo: Fix “An error occurred while mounting” – Ubuntu Lucid (10.04)

