Tuesday, January 27, 2009

Howto do a reverse search on bash commands executed

Bash allows you to find commands that you executed in the past based on a search string. Use control r and then type the command that you are looking for in your history. If you want to see the last rpm commands you used without going through the whole list then “control r” rpm, this will give your last rpm command. Now use your cursor to see other rpm commands you entered.

No comments:

Post a Comment