Linux – Command History

We have all been there. You are searching for some long and complex command you manually entered 4 minutes ago, but despite you bashing the up key, you can’t seem to find it and are now having a bad day because of this. This is a trick I learned from a Linux veteran:

CTRL+R

This allows for reverse input command searching. If you were editing a file before with nano, but can’t remember the exact path, in stead of pushing the up button for 2 minutes and then accidentally moving past the command you were looking for, just start typing ‘nano’ and the command you were looking for will appear.

This certainly helped me gain some time and avoided frustration before!