Ctrl+R to search and other terminal history tricks




Life Hacks – Spoken Edition show

Summary: Terminal power users already know that a log of all the commands you execute are kept in history. (Go ahead, type history to see them.) Last week we saw that you can sudo your previous command using the !! (bang-bang) notation. Well, you can also search your command history as you type using the very useful Ctrl+R key combination. Give it a try: in the terminal, hold down Ctrl and press R to invoke "reverse-i-search.