[95875] in RedHat Linux List
Re: completing commands
daemon@ATHENA.MIT.EDU (Rick L. Mantooth)
Wed Oct 21 21:47:35 1998
Date: Wed, 21 Oct 1998 20:46:25 -0500 (CDT)
From: "Rick L. Mantooth" <rickdman@cyberramp.net>
To: Eli Goodman <goodman@math3.sci.ccny.cuny.edu>
cc: redhat-list@redhat.com
In-Reply-To: <199810220055.UAA11190@math3.sci.ccny.cuny.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Wed, 21 Oct 1998, Eli Goodman wrote:
> > > 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*
In default mode (bash) {emacs mode}
Hit your UpArrow key then BackspaceKey then b*<cr>
OR
Hit your UpArrow key then LeftArrowKey then b<cr>
OR
prompt$ set -o vi
prompt$ ls -l a*
[lots of files listed as a*]
prompt$ ESCAPEKey then k then $ then ib<cr>
[lots of files listed as ab*]
prompt$ man bash<cr>
/editing-mode
>
> then the simplest way to do it is to repeat the last command, modifying it
> slightly before excuting, then execiute it. `!!' is no good, since it
> executes it over again.
prompt$ man bash<cr>
/Event Designators
prompt$ man bash<cr>
/history expansion
Big doc but a good doc.
>
> Jacob E. Goodman
>
>
Rick
--
Rick L. Mantooth rickdman@cyberramp.net
http://www.cyberramp.net/~rickdman
Lottery: A tax on people who are bad at math.
--
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.