Categories
Blog Linux Posts

Linux Cheat Sheet

I wanted a cheat sheet which would display pretty nicely on my Kindle 3, I found a bunch of great ones but none were formatted well to fit on the Kindle so I went ahead and compiled my own from the most useful stuff I found on the others. I’ve put in commands for manipulating text files, searching, permissions, system info and a bunch of other stuff too so check it out if you’re in need of a reference page. I’ll update it on here as it gets updated too.

Download Here

Sources:

Categories
Blog Command Line HowTo Posts

HowTo: Find Recently Used Commands in Linux

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: