Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Mar 182008

Search the history of commands you have executed


You typed a lot of commands, and you want to search them, the simplest method is to press Ctrl+r

# [press Ctrl+r]

(reverse-i-search)`da': date

In the above example, I typed the characters "da" and the shell auto matched the command "date" for me - which I have typed in an earlier session.

 Leave a Reply



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