Search your bash history - Linux

by Sanju 2012-07-03 15:15:33

Search your bash history - Linux

If you can't remember how you ran a specific command, you can use your bash history to help you.

If you hit r you will be in a special bash search prompt that looks like:

(reverse-i-search)`':


From this prompt you can enter a portion of the command and immediately see a command that contains what you type.

If the command is the one you are looking for, hit the Enter key to execute that command.
891
like
0
dislike
0
mail
flag

You must LOGIN to add comments