Technology
My favorite bash tricks

My favorite bash tricks

I work on the command line a LOT. Using command line tools allows you to be creative by combining different tools and data to accomplish more complex tasks and speed up tasks that are performed routinely. Getting into the habit of making daily tasks easier to repeat is the first step in automating and increasing efficiency. Readers of the book Extreme Ownership might recognize this philosophy as: “Standardize before you Optimize”.

Some of my favorite bash tricks

set -o vi # enable vi shortcuts for navigating command prompt
Ctrl + R  # reverse search through command history
Cd -      # jump to the previous directory
$_        # expand the last argument of the previous command
pushd     # add a directory to your directory stack
pushd +1  # jump to the next directory in your directory stack