← Back

Tuesday, 9 July 2013

Bash Keyboard Shortcuts

I just recently discovered that bash has keyboard shortcuts to help you move around and edit things faster. Here’s the list of some of my favorites.

Keyboard Shortcuts

The list goes on and if you want to know more take a look at bash reference

Bonus Tip

To be able to search through bash command history using up and down arrows add following script to your ~/.inputrc file:

"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on

Like the single most useful thing in bash explains:

type “cd /“ and press the up arrow and you’ll search through everything in your history that starts with “cd /“.