[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find a command i have recently used in bash



On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote:
> hello all
> 
> i am sure there must be a way of doing it. i am not getting it though.
> 
> let us say, i have done ls -l , etc etc
> then i have done a few more commands at the prompt.
> 
> now, i want to use that ls command again. is there a way inwhich i can
> reach it quickly? for instance, i type ls and some other key and bash
> completes from history?

Type ^R (Control R) at the Bash prompt and then type first few
characters of the command you want to recall. Bash will complete the
rest of the command line as soon as it can uniquely determine the
string from command history.

regards,
-- 

Amal Phadke, Ph.D.
email: phadke at hydrodyn.org



Reply to: