Friday, February 1, 2013

How To Quick Search Bash History

Here is a very short post for a very short Linux tip. If you want to quickly search the bash history, just press Ctrl+R and type what you are looking for. If you want to go back in the history for that particular command, continue pressing Ctrl+R. If you press Enter, the selected command will be immediately executed, therefore you must pay attention. If you want to bring the command you just found to the prompt (to modify it, for instance) press Tab.

No comments:

Post a Comment