Terminal

How to list the terminal command history?

Cmd: History

How to search the history?

Cmd: History | grep <search keyword>

How to navigate to the existing command in the history?

Press ‘CTRL’ + ‘R’ to invoke the ‘reserve-i-search’ and type the character to narrow down the search result list.

Ref:

http://lifehacker.com/278888/ctrl%252Br-to-search-and-other-terminal-history-tricks

http://weichen.wordpress.com/2007/01/20/howto-quick-search-terminal-history-commands/

Advertisements