[95871] in RedHat Linux List
Re: completing commands
daemon@ATHENA.MIT.EDU (Dave Reed)
Wed Oct 21 21:34:34 1998
Date: Wed, 21 Oct 1998 21:36:42 -0400
From: Dave Reed <dreed@capital.edu>
To: redhat-list@redhat.com
Cc: redhat-list@redhat.com
In-Reply-To: <199810220055.UAA11190@math3.sci.ccny.cuny.edu>
(goodman@math3.sci.ccny.cuny.edu)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> > > how do i set up linux to finish typing commands for me? in other words:
> > > 'tar -xfvz jdk' will become 'tar -xfvz jdk_1.1.6-v5-glibc-x86.tar.gz' if
> > > jdk_1.1.6-v5-glibc-x86.tar.gz is the only file name starting with 'jdk'.
> >
> > In bash the tab key does it.
>
> And how do I set it up to *repeat* the last command (but permit the command
> to be changed if I want)? For example, if I typed
>
> ls -l a*
>
> and got too many files, and now I want to modify that to
>
> ls -l ab*
Try pressing the up arrow. After that you can use the left and right
arrows, backspace, etc. to modify it. The emacs cursor control key
sequences also work (e.g., ctrl-a goes to beginning of line, ctrl-e
goes to end of line, ctrl-k deletes from current character to end of
line, tec.).
Pressing the up arrow multiple times will cycle through previous
commands (and the down arrow also goes back the other way).
Dave
dreed@capital.edu
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.