Today, in the CentOS experiment, found that before the use of Ubuntu under the comparison of the more accustomed to the use of the tab to complete the command can not be used, so very curious, after looking for information and personally tested, the possible solutions are recorded as follows:
1) First, you need to run the following command in the terminal:
# Yum Install bash-completion//can also be installed with wildcard characters: Yum install bash-c*
2) If the above command does not work, you can try the following command
Yum Upgrade
3) If the above two commands are still not working, you can restart the machine or log in again
Since I was experimenting with scurecrt, I chose to log back in using the login command, and then sudo-i into root mode, and you can use the TAB completion command
login//Re-Login
This article is from the "Coder Life Change" blog, make sure to keep this source http://spencergra.blog.51cto.com/9609512/1923220
Under Linux (CentOS), the TAB key cannot be used to complete the resolution of the command