Sure - to complete the prior command beginning with ls, do:

!ls

which will re-execute the last comment beginning with "ls".

If you need finer-grained history, use the command:

history

which will let you copy-and-paste a prior command.

ap

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
[EMAIL PROTECTED] * andrew_perrin (at) unc.edu


On Wed, 29 Jan 2003, Mike Dresser wrote:

> On Wed, 29 Jan 2003, Sandip P Deshmukh wrote:
> 
> > 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?
> 
> well, if nothing else, you can hit up a few times and it'll scroll through
> your command history.
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to