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

Re: find a command i have recently used in bash



On Wednesday 29 January 2003 08:21 am, 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?
>
> --
> regards,
> sandip p deshmukh
> ------***--------
> BOFH excuse #40:
>
> not enough memory, go get system upgrade

you can use the up arrow to reach previous commands.  or you can grep your 
.bash_history, like grep ls ~/.bash_history

-jason pepas



Reply to: