Home   Profile   Fun
#165 Linux  01.09.2008

How to search in the bash history


Print the bash history.
history

Search in the bash history: press CTRL-r once. After that type something which is part of the command you are looking for. It will be completed automatically. Then press ESC to select it or RETURN to execute it directly.