cmd

Search backwards in history

(This is not a command ‘stricto sensu’ but a must-know).

Assume you are in the shell, after some work. If you press CTRL-r, you enter the incremental history search mode: you just type something you remember you typed and the last executed command containing it appears. Then you either press ENTER to execute the line or the right arrow to edit it or CTRL-r again to continue the search.

Try it and enjoy.

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields