This one time, at band camp, Sandip P Deshmukh said: > 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? There is, of course, More Than One Way To Do It (TM) :). The default configuration, though, lets you use the up and down keys to scroll back through your history. If it's far enough back, then you can hit Ctrl-r first, and it will attempt to find the command through pattern matching on your history as you type. -- -------------------------------------------------------------------------- | Stephen Gran | No man is an island if he's on at least | | steve@lobefin.net | one mailing list. | | http://www.lobefin.net/~steve | | --------------------------------------------------------------------------
Attachment:
pgpNKsu4fGjP6.pgp
Description: PGP signature