Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure where to post this question so please allow me to try it here...
I setup a CentOS 7 development machine to attempt to compile a source package. Basic install from the Everything DVD - packages for development and the default Gnome 3 desktop. Having no luck with my build project I obtained an rpm from another source and tried to install it thusly
1 - downloaded the .rpm (gnome-commander-1.6.2-1.el7.nux.x86_64.rpm) to the ~/Download dirctory
2 - opened a terminal
3 - cd to ~/Download
4 - su
5 - yum install g [TAB]
I would have expected tab completion to fill in the complete name of the package as I was in the same directory as the package file and there were no other files present. I continued typing
gn [TAB] nothing
gno [TAB] nothing
gnom [TAB] filled in to gnome-
gnome-c [TAB] filled in to gnome-co
gnome-com [TAB] filled in to gnome-comm
gnome-comma [TAB] filled in the complete file name gnome-commander-1.6.2-1.el7.nux.x86_64.rpm
I have used tab completion on CentOS 7 with the Mate destkop, CentOS 6 with Gnome 2, various buntu's, Fedora's, early Red Hat's. I have never seen this sort of behavior.
Granted if I have several similarly named files in the same directory I will have to prompt tab completion along so it can differentiate the files. But with only ONE file in the directory? Is this a Gnome 3 thing?
Granted if I have several similarly named files in the same directory I will have to prompt tab completion along so it can differentiate the files. But with only ONE file in the directory? Is this a Gnome 3 thing?
TIA,
Ken
I don't use CentOS, but seeing as you have yet to get a reply and it's been more than a day since you posted, I figured I'd offer a suggestion.
It's unlikely caused by GNOME 3 itself. I have no problems with completion on my Debian machine.
What shell are you using? Debian has a "bash-completion" package for this purpose with bash, perhaps CentOS has something similar and it has not been installed? Check your shell, your installed packages and the repositories.
Yes, I am using bash. I did notice when I accidentally pressed [Enter] while displaying "#yum install gnome-" the system displayed a list of all sorts of stuff beginning with "gnome-" It seemed that tab completion was reading everything in root's path or the RPM database or yum package list or something other than the files in the pwd.
The virtual machine in question was a "development" workstation with all sorts of compilers, tools and the kitchen sink installed. I need to build a Gnome 3 "civilian" test VM. I will see what tab completion does on that machine and update the thread.
Yes, I am using bash. I did notice when I accidentally pressed [Enter] while displaying "#yum install gnome-" the system displayed a list of all sorts of stuff beginning with "gnome-" It seemed that tab completion was reading everything in root's path or the RPM database or yum package list or something other than the files in the pwd.
That may be how CentOS is configured. Check out /usr/share/bash_completion/bash_completion, which should be a shell script which sets up how completion is done, what order, etc.
See http://stackoverflow.com/questions/5...ompletion-work for more information on how completion works (if you feel like getting into it). The files in your home directory may be the last thing the completion mechanism is set to look at.
I just built a new CentOS 7 Gnome 3 virtual machine to test a new gnome-commander package from nux. Tab completion is functioning in the same strange way. I have gotten gnome-commander 1.6.2 to install and run which is GREAT. Now I need to go back to CentOS 7 Mate which I actually use and get g-c working there. I will compare the completion scripts from both environments and see what I can determine. Not exactly top priority at the moment but I appreciate the info and I am curious.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.