Kevin's Worklog

Documenting the Daily Stream

Simple Bash Tricks

I learned two new (to me) useful Bash tricks today.

The first is a way to search your Bash history (replacing a little script I wrote to do the same thing):


The second is a way to jump to the beginning of a line (say after you’ve selected something from your history and need to add sudo in front of it):


That’s it… on my way to using more of the conveniences that Bash has built into it.