[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 04:30:54PM +0100, Stephen Rueger wrote:
> On Wed, Jan 29, 2003 at 07:51:07PM +0530, Sandip P Deshmukh wrote:
> > 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?
> 
> You can press ctrl-r to search backwards in your history or you can use

thanx. this is perfect. just what i wanted

> csh-like history expansion with ! (read the HISTORY EXPANSION section in
> the bash man page)

this is a bit tricky. lets say, it executes an unwanted delete command
in a hurry!

-- 
regards,
sandip p deshmukh
------***--------
We are experiencing system trouble -- do not adjust your terminal.



Reply to: