Hello Jarrod, Yes, I know how tab completion works, as I use it to cat files with similar names and just put one more letter or number or other character and hit tab completion again.
It was just that I missed the obvious that I could use tab completion in this instance. Sometimes I fail to use the obvious until someone tells me to. Hopefully I will learn to use what I know better after getting a little more practice. I do have a three button mouse. Thanks for the help. Michael __________________________________________________________________________________________________________________________________ On August 9, 2004 02:44 pm, Jarrod Major wrote: > If I am reading this right Michael, there's a couple things you can do, you > can type: > > rpm -ivh Real > > and hit tab and let the console do autocompletion for the filename, this > way there is no chance of mistyping the filename. > > If you have a console open in a gui like KDE, you can type "rpm -ivh ", > highlight the filename and if you have a three button or scroll mouse you > can hit the middle button (or wheel button) to paste. To do this you have > to mouse over the area you want to paste the text to and then click. > Alternatively, if you only have a two button mouse you would click both the > right and left mouse buttons at the same time to emulate a third mouse > button click. > > Hope that makes sense. It's a pretty handy trick that I use all the time. > The autocompletion thing is great though, the only caveat there is that if > you have more than one filename that matches what you have typed before you > hit tab then it will complete up to where the filename is the same so for > example: > > you have the following two files: > > RealPlayer-0.4.0.186-20040615.i586.rpm > RealPlayer-0.4.0.186-20040310.i586.rpm > > typing "rpm -ivh Real" will autocomplete to: > > RealPlayer-0.4.0.186-20040 > > adding a 6 to the end of that text string and hitting tab will get you the > file you want. You will of course have to hit enter to execute the RPM > command. > > I'm not sure if this is consistent between all shells, I am using BASH. > > Jarrod > > > ----- Original Message ----- > From: Michael Walters > Sent: 8/9/2004 2:11:02 PM > To: [EMAIL PROTECTED] > Subject: [clug-talk] tried to install RealPlayer > > > Hello All, > > > > I noticed that the file name I typed in to install had a number of errors > > including not capitalizing R and P in RealPlayer and having one to many > > ones in .1186- (should have been .186-). > > > > So I logged in as root and went to my Dl directory and saw in red letters > > "RealPlayer-0.4.0.186-20040615.i586.rpm" which was the file name of the > > file I downloaded to my Dl directory. I then typed in "rpm -ivh > > RealPlayer-0.4.0.186-20040615.i586.rpm" and got the error message: > > "error: can not open Packagesindex using db3 - No such file or directory > > (2) error: can not open Packages database in /var/lib/rpm". > > > > Is there a way of highlighting the file name to get it without errors and > > typing it in ahead of the filename the command "rpm -ivh "? In other > > words rmp -ivh <highlighted file name>? > > > > I am thinking that perhaps I make subtle errors in the file name that > > could be eliminated by highlighting the file name that is in red letters > > and plunking it down after the command rpm -ivh. > > > > I am running a libranet debian linux desktop. > > > > Thank you in advance, > > > > Michael Walters > > > > _______________________________________________ > > clug-talk mailing list > > [EMAIL PROTECTED] > > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > > _______________________________________________ > clug-talk mailing list > [EMAIL PROTECTED] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca _______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

