Skip to main content
Welcome guest. | Register | Login | Post

Searching bash history

Do you only half-remember a commandline command you recently used? If you use bash (most likely you do), you don't need to look it up again or reinvent it. Just type control-r and then the part you do remember. Bash will search it's history for commands of which what you typed is a substring.

Example: I remember I used some browser to visit some site named (something)fied(something):

ctrl-r fied

and the result is:

(reverse-i-search)`fied': firefox http://www.nuxified.org

Now just press enter to visit everyone's favourite free software help site :-)